bugfix login

This commit is contained in:
Sina Blattmann 2023-07-06 11:42:52 +02:00
parent 6628e57861
commit 4b873306e3
2 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public static class UserMethods
public static Boolean VerifyPassword(this User user, String password) public static Boolean VerifyPassword(this User user, String password)
{ {
return Db.GetUserByEmail(user.Name)?.Password == user.SaltAndHashPassword(password); return Db.GetUserByEmail(user.Email)?.Password == user.SaltAndHashPassword(password);
} }

Binary file not shown.