Browse Source

Update Register.cshtml.cs

pull/17406/head
liangshiwei 3 years ago
parent
commit
1b4bac0b63
  1. 12
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs

12
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs

@ -55,7 +55,11 @@ public class RegisterModel : AccountPageModel
public virtual async Task<IActionResult> OnGetAsync()
{
await CheckSelfRegistrationAsync();
if (!IsExternalLogin)
{
await CheckSelfRegistrationAsync();
}
await TrySetEmailAsync();
ExternalProviders = await GetExternalProviders();
return Page();
@ -92,7 +96,11 @@ public class RegisterModel : AccountPageModel
{
try
{
await CheckSelfRegistrationAsync();
if (!IsExternalLogin)
{
await CheckSelfRegistrationAsync();
}
ExternalProviders = await GetExternalProviders();
if (IsExternalLogin)

Loading…
Cancel
Save