Exemplo n.º 1
0
 // Token: 0x060062FA RID: 25338 RVA: 0x0023372C File Offset: 0x00231B2C
 public void AccountCreatePressed()
 {
     if (InputFieldValidator.IsFormInputValid(base.gameObject))
     {
         if (InputFieldValidator.ValidateFormPostEntry(base.gameObject))
         {
             this.flowManager.StartCoroutine(this.flowManager.CreateAccount(this.createUserName.text, this.createPassword.text, this.createEmail.text, DateTime.Parse(this.createDateOfBirth.text).ToString("yyyy-MM-dd")));
         }
         else
         {
             VRCUiManager.Instance.popups.ShowStandardPopup("Cannot Register Account", "Account creation failed.", "Close", delegate
             {
                 VRCUiManager.Instance.popups.HideCurrentPopup();
             }, null);
             Analytics.Send(ApiAnalyticEvent.EventType.error, "CreateAccountFailed: dob check failed", null, null);
         }
     }
     else
     {
         VRCUiManager.Instance.popups.ShowStandardPopup("Cannot Register Account", "Please fill out valid data for each input.", "Close", delegate
         {
             VRCUiManager.Instance.popups.HideCurrentPopup();
         }, null);
         Analytics.Send(ApiAnalyticEvent.EventType.error, "CreateAccountFailed: form entries invalid", null, null);
     }
 }
Exemplo n.º 2
0
 // Token: 0x060062F9 RID: 25337 RVA: 0x0023368C File Offset: 0x00231A8C
 public void AccountLoginPressed()
 {
     if (InputFieldValidator.IsFormInputValid(base.gameObject))
     {
         this.flowManager.StartCoroutine(this.flowManager.LoginAccount(this.loginUserName.text, this.loginPassword.text));
     }
     else
     {
         VRCUiManager.Instance.popups.ShowStandardPopup("Cannot Login", "Please fill out valid data for each input.", "Close", delegate
         {
             VRCUiManager.Instance.popups.HideCurrentPopup();
         }, null);
         Analytics.Send(ApiAnalyticEvent.EventType.error, "LoginFailed: form entries invalid", null, null);
     }
 }