Fixed null check in external login.

(cherry picked from commit 9981907532)
This commit is contained in:
Andy Butland
2022-05-21 08:10:52 +02:00
committed by Bjarke Berg
parent 0f6630861e
commit e6320a12ba

View File

@@ -86,7 +86,7 @@ public abstract class UmbracoSignInManager<TUser> : SignInManager<TUser>
var providerKey = auth.Principal.FindFirstValue(ClaimTypes.NameIdentifier);
var provider = items[UmbracoSignInMgrLoginProviderKey];
if (providerKey == null || provider is not null)
if (providerKey == null || provider == null)
{
return null;
}