From 998190753212de591b75b8e2c74c153c812d2cd4 Mon Sep 17 00:00:00 2001 From: Andy Butland Date: Sat, 21 May 2022 08:10:52 +0200 Subject: [PATCH] Fixed null check in external login. --- src/Umbraco.Web.Common/Security/UmbracoSignInManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.Common/Security/UmbracoSignInManager.cs b/src/Umbraco.Web.Common/Security/UmbracoSignInManager.cs index 263343b817..63defed2de 100644 --- a/src/Umbraco.Web.Common/Security/UmbracoSignInManager.cs +++ b/src/Umbraco.Web.Common/Security/UmbracoSignInManager.cs @@ -86,7 +86,7 @@ public abstract class UmbracoSignInManager : SignInManager 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; }