From 4b873306e337ccb6a61b82bfef223ab1d87f9822 Mon Sep 17 00:00:00 2001 From: Sina Blattmann Date: Thu, 6 Jul 2023 11:42:52 +0200 Subject: [PATCH] bugfix login --- csharp/App/Backend/DataTypes/Methods/User.cs | 2 +- csharp/App/Backend/db.sqlite | Bin 122880 -> 122880 bytes 2 files changed, 1 insertion(+), 1 deletion(-) 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 8e50935f71de2ad82e36c48ac876b794811e8ed1..0d0b831741990c3b56a701a6fa1c617fedc9c08e 100644 GIT binary patch delta 727 zcmaiwO-vI(7=~wd+p>#nKdK@jNGPd^F<9Ad>ED3_OO&5lS*(ckFNRw@`YZ z_2#jpCou71!d*7elLgOl#)89=!Qo0VXA3`g&V}W&MgrwrKhA& zu$=4{V@AbCN9E%5WRl(uW=>Dq-0d83Gfy3QGN3k>vicsNe*bd98urxR^*9)^|Y$j8sDnG?b_fw?83h38vY39Z7h$Oqm5-*p0~3+ zw;^NqODwxh{C*cOHupY2d*kP%-L&of0Lz0mh7W<^`LkosCOR-Q5j0Jg_zogo#vbP# zX!_3VLT=$ft`bnoxzNM;KvE8kQc)LYqoMm`O67KzFFq?rysg%QG3+4NvG67gTw&w* le=KtX9UwR`UGf)jA#|MMMBYco;XZ@V#yarX9A>?apdia$#3kuZnNi_;H@+*oeb8zq~OFAbrD9dwr z=9Q!twDbz`C^ieI%8jhF z@QUy=HSjVh3oEhk^Y`=!%{F(AFbE3?G4zPct11sp%*o76tS~SzF!TlbC$l6qIm4NW zUmj{NFE4{KFNbexW>IEddTO3iYEfQrd1gsfYSCn$dKp=uHe;aQ{E<|nxKdLN#b6Hx zWP^2iIVM}wTTW_V