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

            return(hash);
        }
示例#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();
     }
 }