1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-03-14 16:11:23 +00:00

Fixed: Wrong user name won't result in error message being generated

This commit is contained in:
Mark McDowall 2015-02-04 07:15:37 -08:00
parent 33bb64984a
commit 341daf69d1

View file

@ -75,6 +75,11 @@ namespace NzbDrone.Core.Authentication
{
var user = _repo.FindUser(username.ToLowerInvariant());
if (user == null)
{
return null;
}
if (user.Password == password.SHA256Hash())
{
return user;