mirror of
https://github.com/Radarr/Radarr
synced 2026-02-10 16:53:30 +01:00
Fixed: Wrong user name won't result in error message being generated
This commit is contained in:
parent
33bb64984a
commit
341daf69d1
1 changed files with 5 additions and 0 deletions
|
|
@ -75,6 +75,11 @@ public User FindUser(string username, string password)
|
|||
{
|
||||
var user = _repo.FindUser(username.ToLowerInvariant());
|
||||
|
||||
if (user == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if (user.Password == password.SHA256Hash())
|
||||
{
|
||||
return user;
|
||||
|
|
|
|||
Loading…
Reference in a new issue