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 1b1a02d201..7bc536ba9d 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 @@ -62,7 +62,7 @@ public class RegisterModel : AccountPageModel if (!await CheckSelfRegistrationAsync()) { - if (!IsExternalLogin && IsExternalLoginOnly) + if (IsExternalLoginOnly) { return await OnPostExternalLogin(ExternalLoginScheme); }