If there is a bad password when changing it, we now inform the user

This commit is contained in:
tidusjar 2016-08-30 14:53:49 +01:00
commit 2e22ad946d
2 changed files with 28 additions and 11 deletions

View file

@ -151,7 +151,7 @@ namespace PlexRequests.Core
var passwordMatch = PasswordHasher.VerifyPassword(oldPassword, userToChange.Salt, userToChange.Hash);
if (!passwordMatch)
{
throw new SecurityException("Password does not match");
throw new SecurityException("Incorrect password.");
}
var newSalt = PasswordHasher.GenerateSalt();