diff --git a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs index 11d8b92c91..5836ec2123 100644 --- a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs +++ b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs @@ -55,7 +55,11 @@ public class RegisterModel : AccountPageModel public virtual async Task 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)