Esempio n. 1
0
        Task IUserPasswordStore <AppUser, string> .SetPasswordHashAsync(AppUser user, string passwordHash)
        {
            MyPasswordHasher hashedpassword = new MyPasswordHasher();

            user.UserPassword = hashedpassword.HashPassword(user.UserPassword);
            return(Task.FromResult(user.UserPassword));
        }
Esempio n. 2
0
 public string HashPassword(string password)
 {
     return(MyPasswordHasher.Encrypt(password, true));
 }