Fixed null check in external login.

This commit is contained in:
Andy Butland
2022-05-21 08:10:52 +02:00
parent f22aa2ed2d
commit 9981907532

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;
}