mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
If there is a bad password when changing it, we now inform the user
This commit is contained in:
parent
9aa60dfc23
commit
2e22ad946d
2 changed files with 28 additions and 11 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue