public void ExeciuteLoginPressButtonLogin()
 {
     if (IsLoginCorrect() && IsPasswordCorrect())
     {
         StartCoroutine(Login(_textLogin.text, _textPass.text));
     }
     else if (!IsLoginCorrect() && !IsPasswordCorrect())
     {
         _messageBoxControllerObj.SetActive(true);
         ValidationMessageBoxController();
         _messageBoxController.DisplayTextMessageBox("Complete all fields!");
     }
     else if (!IsLoginCorrect())
     {
         _messageBoxControllerObj.SetActive(true);
         ValidationMessageBoxController();
         _messageBoxController.DisplayTextMessageBox("Your Login is to short minimum sign:[" + _lenghtLoginMin + "]!");
     }
     else if (!IsPasswordCorrect())
     {
         _messageBoxControllerObj.SetActive(true);
         ValidationMessageBoxController();
         _messageBoxController.DisplayTextMessageBox("Your password does not meet the requirements, minimum sign:[" + _lenghtPassMin + "]!");
     }
 }
Beispiel #2
0
 public void ExeciuteRequestToDataBase()
 {
     if (IsPassRepIsCorrcet() && IsLoginCorrect() && IsEmailCorrect())
     {
         StartCoroutine(Register(_textLogin.text, _textPass.text, _textEmail.text));
     }
     else if (!IsPassRepIsCorrcet() && !IsLoginCorrect() && !IsEmailCorrect())
     {
         _messageBoxControllerObj.SetActive(true);
         ValidationMessageBoxController();
         _messageBoxController.DisplayTextMessageBox("Complete all fields!");
     }
     else if (!IsEmailCorrect())
     {
         _messageBoxControllerObj.SetActive(true);
         ValidationMessageBoxController();
         _messageBoxController.DisplayTextMessageBox("Your Email is to short minimum sign:[" + _lenghtEmailMin + "]!");
     }
     else if (!IsLoginCorrect())
     {
         _messageBoxControllerObj.SetActive(true);
         ValidationMessageBoxController();
         _messageBoxController.DisplayTextMessageBox("Your Login is to short minimum sign:[" + _lenghtLoginMin + "]!");
     }
     else if (!IsPassRepIsCorrcet())
     {
         _messageBoxControllerObj.SetActive(true);
         ValidationMessageBoxController();
         _messageBoxController.DisplayTextMessageBox("Your password does not meet the requirements, minimum sign:[" + _lenghtPassMin + "]!");
     }
 }