You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
I'm using ASPNET Core 2.1 with Razor Pages UI Library and noticed that whilst registered social logins appear when I open the Login page, they disappear after an error like incorrect password.
There seems to be a bug in Identity\Pages\Account\Login.cshtml.cs as
public IList<AuthenticationScheme> ExternalLogins { get; set; }
is only initialised in OnGetAsync(), but if an error happens OnPostAsync() then Page() is returned so OnGetAsyn() doesn't get called. Changing error handling in OnPostAsync() so RedirectToPage() is returned seems to fix the problem.
Please confirm this is a bug and comment on my fix
The text was updated successfully, but these errors were encountered:
I'm using ASPNET Core 2.1 with Razor Pages UI Library and noticed that whilst registered social logins appear when I open the Login page, they disappear after an error like incorrect password.
There seems to be a bug in Identity\Pages\Account\Login.cshtml.cs as
is only initialised in OnGetAsync(), but if an error happens OnPostAsync() then Page() is returned so OnGetAsyn() doesn't get called. Changing error handling in OnPostAsync() so RedirectToPage() is returned seems to fix the problem.
Please confirm this is a bug and comment on my fix
The text was updated successfully, but these errors were encountered: