Fix login return routes and recovery feedback
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 6m29s
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 6m29s
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user