feat : use guide login only [no ci]

This commit is contained in:
2026-10-06 18:41:28 +07:00 Unverified
parent 1339dd43e6
commit 3c8f60433a
28 changed files with 50 additions and 783 deletions
+1 -2
View File
@@ -49,8 +49,7 @@ describe("administrative security boundaries", () => {
new URL("../components/auth/account-form.tsx", import.meta.url),
"utf8",
);
expect(source).toContain('const captcha = !oidcOnly && process.env.NODE_ENV !== "development";');
expect(source).toContain('{!oidcOnly && <>');
expect(source).toContain('const captcha = process.env.NODE_ENV !== "development";');
const loginGuard = "if (busy || (!register && captcha && !token)) return;";
const registrationGuard = "if (!form?.reportValidity() || (captcha && !token)) return;";
expect(source).toContain(loginGuard);