From 1b4bac0b63daca0fbf1dcaa4032d58ba6349631d Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Fri, 18 Aug 2023 17:21:38 +0800 Subject: [PATCH] Update Register.cshtml.cs --- .../Pages/Account/Register.cshtml.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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)