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)) {