Unofficial CardLife revival project, pronounced like "celery"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
707B

  1. namespace CLre_server.Tweaks.Chat
  2. {
  3. public class AuthenticationEngine: API.Engines.ServerEnginePostBuild
  4. {
  5. public API.Utility.AuthenticationResponse response = default;
  6. public bool IsAuthenticated = false;
  7. public override void Ready()
  8. {
  9. API.Utility.CardLifeUserAuthentication.Authenticate(
  10. CLre.Config.email_address,
  11. CLre.Config.password,
  12. (data) =>
  13. {
  14. this.IsAuthenticated = true;
  15. this.response = data;
  16. API.Utility.Logging.Log("CLre chat credentials successfully authenticated");
  17. }).Run();
  18. }
  19. }
  20. }