From 7fd00898848fc736ab136a229067a11eb2adfe9a Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 26 Mar 2019 22:12:44 -0400 Subject: [PATCH] Fixed: Can't login with a username and a blank password Co-Authored-By: Mark McDowall --- src/Lidarr.Http/Authentication/AuthenticationModule.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Lidarr.Http/Authentication/AuthenticationModule.cs b/src/Lidarr.Http/Authentication/AuthenticationModule.cs index 8feee4589..3baa7662a 100644 --- a/src/Lidarr.Http/Authentication/AuthenticationModule.cs +++ b/src/Lidarr.Http/Authentication/AuthenticationModule.cs @@ -1,4 +1,4 @@ -using System; +using System; using Nancy; using Nancy.Authentication.Forms; using Nancy.Extensions; @@ -26,8 +26,7 @@ namespace Lidarr.Http.Authentication { Ensure.That(resource.Username, () => resource.Username).IsNotNullOrWhiteSpace(); - // TODO: A null or empty password should not be allowed, uncomment in v3 - //Ensure.That(resource.Password, () => resource.Password).IsNotNullOrWhiteSpace(); + Ensure.That(resource.Password, () => resource.Password).IsNotNullOrWhiteSpace(); var user = _userService.FindUser(resource.Username, resource.Password);