mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Wrong user name won't result in error message being generated
This commit is contained in:
@@ -75,6 +75,11 @@ namespace NzbDrone.Core.Authentication
|
|||||||
{
|
{
|
||||||
var user = _repo.FindUser(username.ToLowerInvariant());
|
var user = _repo.FindUser(username.ToLowerInvariant());
|
||||||
|
|
||||||
|
if (user == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (user.Password == password.SHA256Hash())
|
if (user.Password == password.SHA256Hash())
|
||||||
{
|
{
|
||||||
return user;
|
return user;
|
||||||
|
Reference in New Issue
Block a user