From 341daf69d1cc402a3b6bca6b00ba4ce1f38765c1 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 4 Feb 2015 07:15:37 -0800 Subject: [PATCH] Fixed: Wrong user name won't result in error message being generated --- src/NzbDrone.Core/Authentication/UserService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/Authentication/UserService.cs b/src/NzbDrone.Core/Authentication/UserService.cs index 274bab7d5..4ca713890 100644 --- a/src/NzbDrone.Core/Authentication/UserService.cs +++ b/src/NzbDrone.Core/Authentication/UserService.cs @@ -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;