示例#1
0
        public void Login(UIAuthenticationDetails uiAuthenticationDetails)
        {
            var email    = uiAuthenticationDetails.Email;
            var password = uiAuthenticationDetails.Password;

            authenticatorApi?.Login(email, password);
        }
示例#2
0
        private void OnLoginButtonClicked()
        {
            var email    = emailInputField?.text;
            var password = passwordInputField?.text;
            var authenticationDetails =
                new UIAuthenticationDetails(email, password);

            LoginButtonClicked?.Invoke(authenticationDetails);
        }
示例#3
0
        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);
            }
        }