fix(auth): fix LoginCustomer routing and stale /login links

- Remove @page "/login" from LoginCustomer.razor (stale duplicate route)
- Add @layout AuthLayout to LoginCustomer.razor for correct layout
- Fix href="/login" -> href="/auth/login" in VerifyEmail.razor
- Fix href="/login" -> href="/auth/login" in ForgotPassword.razor

Co-authored-by: Velik <hongochai10@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-02-27 07:55:18 +00:00
parent 5fae47609f
commit 1a0bbf5338
3 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@
}
<div class="auth-footer">
<a href="/login" class="link-primary">@L["Auth_ForgotPassword_BackToLogin"]</a>
<a href="/auth/login" class="link-primary">@L["Auth_ForgotPassword_BackToLogin"]</a>
</div>
</section>
</div>

View File

@@ -1,5 +1,5 @@
@page "/auth/login/customer"
@page "/login"
@layout AuthLayout
@using WebClientTpos.Client.Components.Auth
@inherits AuthBase

View File

@@ -40,7 +40,7 @@
@message
</div>
<div class="mt-6">
<a href="/login" class="link-primary">@L["Auth_VerifyEmail_GoToLogin"]</a>
<a href="/auth/login" class="link-primary">@L["Auth_VerifyEmail_GoToLogin"]</a>
</div>
}
</section>