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_".
This commit is contained in:
DrPandemic 2019-05-11 19:32:20 -04:00
parent bbc1a86b57
commit c22068d6b1
No known key found for this signature in database
GPG Key ID: B6A2F8AEC8AD2825
2 changed files with 4 additions and 4 deletions

View File

@ -550,7 +550,7 @@ namespace Emby.Server.Implementations.Library
{ {
return string.IsNullOrEmpty(user.EasyPassword) return string.IsNullOrEmpty(user.EasyPassword)
? null ? null
: user.EasyPassword; : (new PasswordHash(user.EasyPassword)).Hash;
} }
/// <summary> /// <summary>