feat : update

This commit is contained in:
2026-10-03 00:56:31 +07:00 Unverified
parent f71c00d2ab
commit f23b69a280
36 changed files with 766 additions and 376 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ export function safeAuthReturnPath(value: unknown): string {
try {
const url = new URL(value, "https://auth.local");
const path = decodeURIComponent(url.pathname);
if (url.origin !== "https://auth.local" || ["/login", "/register", "/commission/login"].includes(path))
if (url.origin !== "https://auth.local" || ["/login", "/register", "/commission/login", "/admin/login"].includes(path))
return "/";
return `${url.pathname}${url.search}${url.hash}`;
} catch {