From 7acd6a4d3c176a53e28745335eb20553908b5f79 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 13 Mar 2019 11:59:06 -0700 Subject: [PATCH] Can't login with a username and a blank password --- src/Sonarr.Http/Authentication/AuthenticationModule.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Sonarr.Http/Authentication/AuthenticationModule.cs b/src/Sonarr.Http/Authentication/AuthenticationModule.cs index ed57e686a..3dd103602 100644 --- a/src/Sonarr.Http/Authentication/AuthenticationModule.cs +++ b/src/Sonarr.Http/Authentication/AuthenticationModule.cs @@ -25,9 +25,7 @@ namespace Sonarr.Http.Authentication private Response Login(LoginResource resource) { 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);