예제 #1
0
        public bool CheckNewLoginFormat(string login = null)
        {
            if (AssignFieldOnCheck && login != null)
            {
                NewLogin = login;
            }
            else
            {
                login = NewLogin;
            }
            var result = _authProvider.CheckLoginFormat(login);

            _newLoginFormatMessage = FormatMessages.FirstOrDefault();
            if (IsChatty)
            {
                RaisePropertyChanged(nameof(IsLoginFormatOk));
            }
            return(result);
        }
예제 #2
0
        public bool CheckCodeFormat(string code = null)
        {
            if (AssignFieldOnCheck && code != null)
            {
                Code = code;
            }
            else
            {
                code = Code;
            }
            var result = _authProvider.CheckCodeFormat(code);

            // _codeFormatMessage = Array.Find<string>(FormatMessages, p => true);
            _codeFormatMessage = FormatMessages.FirstOrDefault();
            if (IsChatty)
            {
                RaisePropertyChanged(nameof(IsCodeFormatOk));
            }
            return(result);
        }
예제 #3
0
        public bool CheckNewPhoneFormat(string phone = null)
        {
            if (AssignFieldOnCheck && phone != null)
            {
                NewPhone = phone;
            }
            else
            {
                phone = NewPhone;
            }
            var result = _authProvider.CheckPhoneFormat(phone);

            // _newPhoneFormatMessage = Array.Find<string>(FormatMessages, p => true);
            _newPhoneFormatMessage = FormatMessages.FirstOrDefault();
            if (IsChatty)
            {
                RaisePropertyChanged(nameof(IsPhoneFormatOk));
            }
            return(result);
        }
예제 #4
0
        public bool CheckNewEmailFormat(string email = null)
        {
            if (AssignFieldOnCheck && email != null)
            {
                NewEmail = email;
            }
            else
            {
                email = NewEmail;
            }
            var result = _authProvider.CheckEmailFormat(email);

            // _newEmailFormatMessage = Array.Find<string>(FormatMessages, p => true);
            _newEmailFormatMessage = FormatMessages.FirstOrDefault();
            if (IsChatty)
            {
                RaisePropertyChanged(nameof(IsEmailFormatOk));
            }
            return(result);
        }
예제 #5
0
        public bool CheckPasswordFormat(string password = null)
        {
            if (AssignFieldOnCheck && password != null)
            {
                Password = password;
            }
            else
            {
                password = Password;
            }
            var result = _authProvider.CheckPasswordFormat(password);

            //_passwordFormatMessage = Array.Find<string>(FormatMessages, p => true);
            _passwordFormatMessage = FormatMessages.FirstOrDefault();
            if (IsChatty)
            {
                RaisePropertyChanged(nameof(IsPasswordFormatOk));
            }
            return(result);
        }