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

pull/3113/head
Mark McDowall 10 years ago
parent 33bb64984a
commit 341daf69d1

@ -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;

Loading…
Cancel
Save