public bool PasswordIsValid(User user) { User DbUser = FindByEmail(user.Email); string SaltedPassword = user.Password + DbUser.Salt; return(encryptionManager.verifyPassword(SaltedPassword, DbUser.Password)); }
public bool PasswordIsValid(User user) { User DbUser = FindByEmail(user.Email); string SaltedPassword = user.Password + DbUser.Salt; return(encryptionManager.verifyPassword(SaltedPassword, DbUser.Password)); }