feat : big update
CI / Verify (push) Successful in 3m14s
CI / Build immutable images and deploy (push) Successful in 4m0s

This commit is contained in:
2026-10-01 18:37:15 +07:00 Unverified
parent c5037154cb
commit 0022625edb
76 changed files with 18671 additions and 29 deletions
+13
View File
@@ -0,0 +1,13 @@
import { describe, expect, it } from "vitest";
import { safeAuthReturnPath } from "./return-path";
describe("public auth return path", () => {
it("keeps site-local destinations", () => {
expect(safeAuthReturnPath("/commission/tickets?from=login")).toBe("/commission/tickets?from=login");
});
it("rejects external destinations and auth loops", () => {
for (const value of ["https://example.com", "//example.com", "/\\example.com", "/login", "/lo%67in", "/register", 4])
expect(safeAuthReturnPath(value)).toBe("/");
});
});