| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| user | ||
| forgot-password.tsx | ||
| oauth.tsx | ||
| otp.tsx | ||
| register.tsx | ||
| reset.tsx | ||
| route.tsx | ||
| sign-in.tsx | ||
| sign-up.tsx |
The sign-in route already redirects logged-in users to /dashboard in its beforeLoad guard, but the sign-up route (and its /register alias) had no such guard, leaving authenticated users on the registration form. This mirrors the classic theme's AuthRedirect behavior. Add an equivalent beforeLoad guard using the same useAuthStore, redirecting to /dashboard for consistency with the sign-in route. Closes #5908 Co-authored-by: 贺. <kuang@M1.local>
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| user | Loading commit data... | |
| forgot-password.tsx | Loading commit data... | |
| oauth.tsx | Loading commit data... | |
| otp.tsx | Loading commit data... | |
| register.tsx | Loading commit data... | |
| reset.tsx | Loading commit data... | |
| route.tsx | Loading commit data... | |
| sign-in.tsx | Loading commit data... | |
| sign-up.tsx | Loading commit data... |