diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-01-02 10:13:57 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-02 10:13:57 +0900 |
| commit | fb61a1f882a30e604793cc125fc5f3da5276547d (patch) | |
| tree | 01be2fe9b9bba2be167ea5678b1cdd9df6b00b82 /Emby.Server.Implementations/Library/UserManager.cs | |
| parent | d3bce6e3805c34e5a1ca301ab234459a02cc6445 (diff) | |
| parent | 5c9e849b85f92f542cd23022b9bbcda209111d09 (diff) | |
Merge pull request #2150 from Bond-009/releaseerror
Enable TreatWarningsAsErrors for some projects
Diffstat (limited to 'Emby.Server.Implementations/Library/UserManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/UserManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/UserManager.cs b/Emby.Server.Implementations/Library/UserManager.cs index 85bfa154a..fd414616f 100644 --- a/Emby.Server.Implementations/Library/UserManager.cs +++ b/Emby.Server.Implementations/Library/UserManager.cs @@ -392,7 +392,7 @@ namespace Emby.Server.Implementations.Library if (providers.Length == 0) { // Assign the user to the InvalidAuthProvider since no configured auth provider was valid/found - _logger.LogWarning("User {UserName} was found with invalid/missing Authentication Provider {AuthenticationProviderId}. Assigning user to InvalidAuthProvider until this is corrected", user.Name, user.Policy.AuthenticationProviderId); + _logger.LogWarning("User {UserName} was found with invalid/missing Authentication Provider {AuthenticationProviderId}. Assigning user to InvalidAuthProvider until this is corrected", user?.Name, user?.Policy.AuthenticationProviderId); providers = new IAuthenticationProvider[] { _invalidAuthProvider }; } @@ -472,7 +472,7 @@ namespace Emby.Server.Implementations.Library if (!success && _networkManager.IsInLocalNetwork(remoteEndPoint) - && user.Configuration.EnableLocalPassword + && user?.Configuration.EnableLocalPassword == true && !string.IsNullOrEmpty(user.EasyPassword)) { // Check easy password |
