public string HashPassword(string plainTextPassword) { var userModel = new UserModelBase { PlainTextPassword = plainTextPassword }; var hash = _passwordHasher.HashPassword(userModel, plainTextPassword); return(hash); }
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(); } }