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:
@@ -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>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@page "/auth/login/customer"
|
||||
@page "/login"
|
||||
@layout AuthLayout
|
||||
@using WebClientTpos.Client.Components.Auth
|
||||
@inherits AuthBase
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user