1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

Can't login with a username and a blank password

This commit is contained in:
Mark McDowall 2019-03-13 11:59:06 -07:00
parent a6fdcb7493
commit 7acd6a4d3c

View File

@ -25,9 +25,7 @@ public AuthenticationModule(IUserService userService, IConfigFileProvider config
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);