public void Login(UIAuthenticationDetails uiAuthenticationDetails) { var email = uiAuthenticationDetails.Email; var password = uiAuthenticationDetails.Password; authenticatorApi?.Login(email, password); }
private void OnLoginButtonClicked() { var email = emailInputField?.text; var password = passwordInputField?.text; var authenticationDetails = new UIAuthenticationDetails(email, password); LoginButtonClicked?.Invoke(authenticationDetails); }
private void OnLoginButtonClicked( UIAuthenticationDetails uiAuthenticationDetails) { var email = uiAuthenticationDetails.Email; var password = uiAuthenticationDetails.Password; if (authenticationValidator.IsEmptyEmailAddress(email, out var message) || authenticationValidator.IsInvalidEmailAddress(email, out message) || authenticationValidator.IsEmptyPassword(password, out message) || authenticationValidator.IsPasswordTooShort(password, out message)) { NoticeUtils.ShowNotice(message); } else { loginView?.DisableInteraction(); authenticatorInteractor.Login(uiAuthenticationDetails); } }