AI Implementation feature(821): First-Start Create Admin Modal (#2)

This commit was merged in pull request #2.
This commit is contained in:
2026-07-21 14:45:55 +00:00
parent 03bcb6b156
commit 9f67ec8c50
30 changed files with 1306 additions and 141 deletions
+5 -1
View File
@@ -2,7 +2,11 @@ import request from 'supertest';
import type { INestApplication } from '@nestjs/common';
import { CookieAccessInfo } from 'cookiejar';
const csrfSkipPaths = new Set<string>(['/api/v1/auth/login', '/api/v1/auth/register-first-admin']);
const csrfSkipPaths = new Set<string>([
'/api/v1/auth/login',
'/api/v1/auth/register-first-admin',
'/api/v1/setup/create-admin',
]);
function attachCsrfHeader(test: request.Test, method: string, path: string, agent: any): request.Test {
if (!['POST', 'PUT', 'PATCH', 'DELETE'].includes(method.toUpperCase())) return test;