From 6628e578615114bd46c8a33852c253affd13d4a2 Mon Sep 17 00:00:00 2001 From: Sina Blattmann Date: Thu, 6 Jul 2023 11:16:00 +0200 Subject: [PATCH] kims work --- csharp/App/Backend/Controller.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/App/Backend/Controller.cs b/csharp/App/Backend/Controller.cs index 788f94869..549e5e8fc 100644 --- a/csharp/App/Backend/Controller.cs +++ b/csharp/App/Backend/Controller.cs @@ -23,7 +23,7 @@ public class Controller : ControllerBase throw new Exceptions(400,"Null User Exception", "Must provide a user to log in as.", Request.Path.Value!); } - if (!(user.Password is null && user.MustResetPassword)) + if (!(user.Password.IsNullOrEmpty() && user.MustResetPassword)) { if (!user.VerifyPassword(password)) {