diff --git a/csharp/App/Backend/DataTypes/Methods/User.cs b/csharp/App/Backend/DataTypes/Methods/User.cs index ac2f09b8e..6b825f6b5 100644 --- a/csharp/App/Backend/DataTypes/Methods/User.cs +++ b/csharp/App/Backend/DataTypes/Methods/User.cs @@ -93,7 +93,7 @@ public static class UserMethods 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); } diff --git a/csharp/App/Backend/db.sqlite b/csharp/App/Backend/db.sqlite index 8e50935f7..0d0b83174 100644 Binary files a/csharp/App/Backend/db.sqlite and b/csharp/App/Backend/db.sqlite differ