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

Loading…
Cancel
Save