From a31ef8941fba520c13fa9e8a8e37ced66ef0f9e5 Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Mon, 25 Nov 2024 16:01:26 -0800 Subject: [PATCH] cleanup --- .../Controllers/ExternalAuthenticationsController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OrchardCore.Modules/OrchardCore.Users/Controllers/ExternalAuthenticationsController.cs b/src/OrchardCore.Modules/OrchardCore.Users/Controllers/ExternalAuthenticationsController.cs index 77516cc903f..1fd5bd64636 100644 --- a/src/OrchardCore.Modules/OrchardCore.Users/Controllers/ExternalAuthenticationsController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Users/Controllers/ExternalAuthenticationsController.cs @@ -318,7 +318,7 @@ public async Task RegisterExternalLogin(RegisterExternalLoginView if (iUser is not null && ModelState.IsValid) { - var identityResult = await _signInManager.UserManager.AddLoginAsync(iUser, new UserLoginInfo(info.LoginProvider, info.ProviderKey, info.ProviderDisplayName)); + var identityResult = await _userManager.AddLoginAsync(iUser, new UserLoginInfo(info.LoginProvider, info.ProviderKey, info.ProviderDisplayName)); if (identityResult.Succeeded) { @@ -388,7 +388,7 @@ public async Task LinkExternalLogin(LinkExternalLoginViewModel mo } else { - var identityResult = await _signInManager.UserManager.AddLoginAsync(user, new UserLoginInfo(info.LoginProvider, info.ProviderKey, info.ProviderDisplayName)); + var identityResult = await _userManager.AddLoginAsync(user, new UserLoginInfo(info.LoginProvider, info.ProviderKey, info.ProviderDisplayName)); if (identityResult.Succeeded) {