aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/UserManager.cs
diff options
context:
space:
mode:
authorDrPandemic <bipbip500@gmail.com>2019-05-11 19:32:20 -0400
committerDrPandemic <bipbip500@gmail.com>2019-05-11 19:53:34 -0400
commitc22068d6b1b84e54521d7ce31b3dac43eeb1e92e (patch)
tree4bc26d0288c204f0be0c5d3cbb4986f4043a45fe /Emby.Server.Implementations/Library/UserManager.cs
parentbbc1a86b571e25aa6d32a713d24ea10535647bc1 (diff)
Fix pin bug introduced in 10.3.z.
The issue is that the new easyPassword format prepends the hash function. This PR extract the hash from "$SHA1$_hash_".
Diffstat (limited to 'Emby.Server.Implementations/Library/UserManager.cs')
-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 c33bb7740..b396ee51a 100644
--- a/Emby.Server.Implementations/Library/UserManager.cs
+++ b/Emby.Server.Implementations/Library/UserManager.cs
@@ -550,7 +550,7 @@ namespace Emby.Server.Implementations.Library
{
return string.IsNullOrEmpty(user.EasyPassword)
? null
- : user.EasyPassword;
+ : (new PasswordHash(user.EasyPassword)).Hash;
}
/// <summary>