diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-08-28 14:45:46 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-08-28 14:45:46 +0200 |
| commit | efc4805233fe8a42215198db0baa0f68e012c1f8 (patch) | |
| tree | 611299b11f232966baf0e46b064e66b83c8b48de /Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs | |
| parent | 874f02631b9be1cd51dafe9df15c5660f1e0e575 (diff) | |
Fix login
Diffstat (limited to 'Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs b/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs index b07244fda..2282b8efb 100644 --- a/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs +++ b/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs @@ -37,7 +37,7 @@ namespace Emby.Server.Implementations.Library throw new ArgumentNullException(nameof(resolvedUser)); } - // As long as jellyfin supports passwordless users, we need this little block here to accomodate + // As long as jellyfin supports passwordless users, we need this little block here to accommodate if (!HasPassword(resolvedUser) && string.IsNullOrEmpty(password)) { return Task.FromResult(new ProviderAuthenticationResult @@ -105,6 +105,7 @@ namespace Emby.Server.Implementations.Library public Task ChangePassword(User user, string newPassword) { ConvertPasswordFormat(user); + // This is needed to support changing a no password user to a password user if (string.IsNullOrEmpty(user.Password)) { |
