From 7e478282fc43ae3c2cfc50e371425f4574e8d9c3 Mon Sep 17 00:00:00 2001 From: colin Date: Thu, 12 Jun 2025 17:38:54 +0800 Subject: [PATCH] perf(account): Optimize the unregistered/logged-in prompt - The redirect to register link is placed above the login button - The redirect to login link is placed above the registration button --- .../Pages/Account/Login.cshtml | 14 +++++++------- .../Pages/Account/Register.cshtml | 9 +++++---- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/aspnet-core/modules/account/LINGYUN.Abp.Account.Web/Pages/Account/Login.cshtml b/aspnet-core/modules/account/LINGYUN.Abp.Account.Web/Pages/Account/Login.cshtml index 06a4e0835..f69fe2973 100644 --- a/aspnet-core/modules/account/LINGYUN.Abp.Account.Web/Pages/Account/Login.cshtml +++ b/aspnet-core/modules/account/LINGYUN.Abp.Account.Web/Pages/Account/Login.cshtml @@ -25,13 +25,6 @@

@L["Login"]

- @if (await SettingProvider.IsTrueAsync(AccountSettingNames.IsSelfRegistrationEnabled)) - { - - @L["AreYouANewUser"] - @L["Register"] - - } @if (Model.EnableLocalLogin) {
@@ -57,6 +50,13 @@ @L["ForgotPassword"] + @if (await SettingProvider.IsTrueAsync(AccountSettingNames.IsSelfRegistrationEnabled)) + { + + @L["AreYouANewUser"] + @L["Register"] + + }
@L["Login"] @if (Model.ShowCancelButton) diff --git a/aspnet-core/modules/account/LINGYUN.Abp.Account.Web/Pages/Account/Register.cshtml b/aspnet-core/modules/account/LINGYUN.Abp.Account.Web/Pages/Account/Register.cshtml index 32bcd4e95..e72e79491 100644 --- a/aspnet-core/modules/account/LINGYUN.Abp.Account.Web/Pages/Account/Register.cshtml +++ b/aspnet-core/modules/account/LINGYUN.Abp.Account.Web/Pages/Account/Register.cshtml @@ -7,10 +7,6 @@

@L["Register"]

- - @L["AlreadyRegistered"] - @L["Login"] - @if (Model.EnableLocalRegister || Model.IsExternalLogin) { @@ -27,6 +23,11 @@ } + + @L["AlreadyRegistered"] + @L["Login"] + + @if (Model.EnableLocalRegister || Model.IsExternalLogin) {