Skip to content

Commit 152cc3a

Browse files
committed
Fix for external logins
#5765
1 parent f0fc598 commit 152cc3a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Identity/UI/src/Areas/Identity/Pages/V3/Account/Login.cshtml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ public override async Task<IActionResult> OnPostAsync(string returnUrl = null)
124124
{
125125
returnUrl = returnUrl ?? Url.Content("~/");
126126

127+
ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList();
128+
127129
if (ModelState.IsValid)
128130
{
129131
// This doesn't count login failures towards account lockout

src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Login.cshtml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ public override async Task<IActionResult> OnPostAsync(string returnUrl = null)
123123
{
124124
returnUrl = returnUrl ?? Url.Content("~/");
125125

126+
ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList();
127+
126128
if (ModelState.IsValid)
127129
{
128130
// This doesn't count login failures towards account lockout

0 commit comments

Comments
 (0)