The Free Software Media System - Server Backend & API
Fix pin bug introduced in 10.3.z.
DrPandemicc22068d6b1b8
diff --git a/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs b/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.csindex 3d15a8afbb..0527464ffc 100644--- a/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs+++ b/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs@@ -19,7 +19,7 @@ namespace Emby.Server.Implementations.Librarypublic string Name => "Default";public bool IsEnabled => true;-+// This is dumb and an artifact of the backwards way auth providers were designed.// This version of authenticate was never meant to be called, but needs to be here for interface compat// Only the providers that don't provide local user support use this@@ -27,7 +27,7 @@ namespace Emby.Server.Implementations.Library{throw new NotImplementedException();}-+// This is the verson that we need to use for local users. Because reasons.public Task<ProviderAuthenticationResult> Authenticate(string username, string password, User resolvedUser){@@ -103,7 +103,7 @@ namespace Emby.Server.Implementations.Librarystring hash = user.Password;user.Password = string.Format("$SHA1${0}", hash);}-+if (user.EasyPassword != null && !user.EasyPassword.Contains("$")){string hash = user.EasyPassword;diff --git a/Emby.Server.Implementations/Library/UserManager.cs b/Emby.Server.Implementations/Library/UserManager.csindex c33bb77409..b396ee51a3 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>