mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-17 15:02:34 +02:00
Fixed: Wrong user name won't result in error message being generated
This commit is contained in:
parent
33bb64984a
commit
341daf69d1
@ -75,6 +75,11 @@ public User FindUser(string username, string password)
|
|||||||
{
|
{
|
||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user