Fix login return routes and recovery feedback
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 6m29s

This commit is contained in:
2026-10-31 13:56:01 +05:00
parent 48d4058e06
commit 0d62f08e77
6 changed files with 47 additions and 7 deletions

View File

@@ -77,9 +77,16 @@ export function authDestination(value: string | null | undefined): string {
value === "/dashboard" ||
value === "/servers" ||
value === "/support" ||
value === "/tournaments" ||
value === "/ban/appeal" ||
value === "/dev/api" ||
value === "/admin" ||
value === "/moderation" ||
value === "/auth/reset-password"
)
return value;
if (value && /^\/(?:servers|tournaments)\/[0-9a-f-]{36}$/i.test(value))
return value;
if (value && /^\/dashboard\/[0-9a-f-]{36}$/i.test(value)) return value;
if (value && /^\/support\/[0-9a-f-]{36}$/i.test(value)) return value;
if (value && /^\/tournaments\?map=[0-9a-f-]{36}$/i.test(value)) return value;