CLre/CLre_server/Tweaks/Chat/AuthenticationEngine.cs

21 lines
707 B
C#
Raw Normal View History

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();
}
}
}