feat: First-Start Create Admin Modal

This commit is contained in:
OpenVelo Agent
2026-07-21 14:45:53 +00:00
parent 81fd3d8a29
commit 8642669952
22 changed files with 1009 additions and 130 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;