aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbugfixin <steve@bugfix.in>2019-04-30 19:16:53 +0000
committerbugfixin <steve@bugfix.in>2019-04-30 19:16:53 +0000
commit1df73fdeba0aca5ff2835080659877f0a6722f17 (patch)
tree4abc8d76a0dc79cfd692feae07233710b3bd4a4e
parent99700e1b9597395ead44322aebff1e3223d282f1 (diff)
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 :