21 lines
707 B
C#
21 lines
707 B
C#
|
namespace CLre_server.Tweaks.Chat
|
||
|
{
|
||
|
public class AuthenticationEngine: API.Engines.ServerEnginePostBuild
|
||
|
{
|
||
|
public API.Utility.AuthenticationResponse response = default;
|
||
|
public bool IsAuthenticated = false;
|
||
|
|
||
|
public override void Ready()
|
||
|
{
|
||
|
API.Utility.CardLifeUserAuthentication.Authenticate(
|
||
|
CLre.Config.email_address,
|
||
|
CLre.Config.password,
|
||
|
(data) =>
|
||
|
{
|
||
|
this.IsAuthenticated = true;
|
||
|
this.response = data;
|
||
|
API.Utility.Logging.Log("CLre chat credentials successfully authenticated");
|
||
|
}).Run();
|
||
|
}
|
||
|
}
|
||
|
}
|