Exemple #1
0
        public string HashPassword(string plainTextPassword)
        {
            var userModel = new UserModelBase {
                PlainTextPassword = plainTextPassword
            };
            var hash = _passwordHasher.HashPassword(userModel, plainTextPassword);

            return(hash);
        }
Exemple #2
0
 void Trim(UserModelBase input)
 {
     if (input.AccountName.IsNotNullOrEmpty())
     {
         input.AccountName = input.AccountName.Trim();
     }
     if (input.MobilePhone.IsNotNullOrEmpty())
     {
         input.MobilePhone = input.MobilePhone.Trim();
     }
     if (input.Email.IsNotNullOrEmpty())
     {
         input.Email = input.Email.Trim();
     }
 }