aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Lavado <anthonylavado@users.noreply.github.com>2019-04-30 15:36:25 -0400
committerGitHub <noreply@github.com>2019-04-30 15:36:25 -0400
commit7c4cb5ec5842928d7dbdbb2f5856b502979be49c (patch)
treeada44a0b44849a4497ea9ff6c8e951d556a6345b
parent21ba8a0593340490e5bf8dd1fb00e85cfed2fa8a (diff)
parent1df73fdeba0aca5ff2835080659877f0a6722f17 (diff)
Merge pull request #1333 from bugfixin/easypinfix
Fix incorrect hasPassword flag when easy pin set
-rw-r--r--Emby.Server.Implementations/Library/UserManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/UserManager.cs b/Emby.Server.Implementations/Library/UserManager.cs
index 952cc6896..c33bb7740 100644
--- a/Emby.Server.Implementations/Library/UserManager.cs
+++ b/Emby.Server.Implementations/Library/UserManager.cs
@@ -596,7 +596,7 @@ namespace Emby.Server.Implementations.Library
}
bool hasConfiguredPassword = GetAuthenticationProvider(user).HasPassword(user).Result;
- bool hasConfiguredEasyPassword = string.IsNullOrEmpty(GetLocalPasswordHash(user));
+ bool hasConfiguredEasyPassword = !string.IsNullOrEmpty(GetLocalPasswordHash(user));
bool hasPassword = user.Configuration.EnableLocalPassword && !string.IsNullOrEmpty(remoteEndPoint) && _networkManager.IsInLocalNetwork(remoteEndPoint) ?
hasConfiguredEasyPassword :