diff options
| author | Patrick Barron <barronpm@gmail.com> | 2021-03-06 17:43:01 -0500 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2021-03-06 17:43:01 -0500 |
| commit | f638ee6b0918c2ef05ec11cfa43584d3efad68d1 (patch) | |
| tree | d09920ded59a8773ffa84a056f49e7800240589c /Jellyfin.Server.Implementations/Users | |
| parent | 287dab4655176b09b0cd5b7607bfaff74e48d20d (diff) | |
Enable nullable for Jellyfin.Data and remove unnecessary attributes
Diffstat (limited to 'Jellyfin.Server.Implementations/Users')
| -rw-r--r-- | Jellyfin.Server.Implementations/Users/UserManager.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.cs index 76d1389ca..b400a0dd1 100644 --- a/Jellyfin.Server.Implementations/Users/UserManager.cs +++ b/Jellyfin.Server.Implementations/Users/UserManager.cs @@ -184,8 +184,8 @@ namespace Jellyfin.Server.Implementations.Users var user = new User( name, - _defaultAuthenticationProvider.GetType().FullName, - _defaultPasswordResetProvider.GetType().FullName) + _defaultAuthenticationProvider.GetType().FullName!, + _defaultPasswordResetProvider.GetType().FullName!) { InternalId = max + 1 }; @@ -444,7 +444,7 @@ namespace Jellyfin.Server.Implementations.Users { var providerId = authenticationProvider.GetType().FullName; - if (!string.Equals(providerId, user.AuthenticationProviderId, StringComparison.OrdinalIgnoreCase)) + if (providerId != null && !string.Equals(providerId, user.AuthenticationProviderId, StringComparison.OrdinalIgnoreCase)) { user.AuthenticationProviderId = providerId; await UpdateUserAsync(user).ConfigureAwait(false); |
