Example #1
0
        public bool CheckNewPasswordFormat(string password = null)
        {
            if (AssignFieldOnCheck && password != null)
            {
                NewPassword = password;
            }
            else
            {
                password = NewPassword;
            }
            var result = _authProvider.CheckNewPasswordFormat(password);

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