bugfix login
This commit is contained in:
parent
6628e57861
commit
4b873306e3
|
@ -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.
Loading…
Reference in New Issue