aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Jellyfin.Server.Implementations/Users/UserManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.cs
index 38a074e98..25d7524c7 100644
--- a/Jellyfin.Server.Implementations/Users/UserManager.cs
+++ b/Jellyfin.Server.Implementations/Users/UserManager.cs
@@ -407,12 +407,12 @@ namespace Jellyfin.Server.Implementations.Users
var authenticationProvider = authResult.authenticationProvider;
var success = authResult.success;
- if (user is null)
+ if (user == null)
{
string updatedUsername = authResult.username;
if (success
- && authenticationProvider is not null
+ && authenticationProvider != null
&& authenticationProvider is not DefaultAuthenticationProvider)
{
// Trust the username returned by the authentication provider