Default admin password fix

This commit is contained in:
AG
2025-12-06 20:38:42 +02:00
parent cd0eef9ad6
commit 66e73856f7
2 changed files with 3 additions and 10 deletions

View File

@@ -5,20 +5,13 @@ export default defineConfig({
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: 1,
workers: process.env.CI ? 1 : undefined,
reporter: 'html',
use: {
baseURL: 'http://localhost:3000',
trace: 'on-first-retry',
launchOptions: {
headless: false
}
},
webServer: {
command: 'rm -f server/prisma/prisma/dev.db && npm run migrate:deploy --prefix server && npm run dev:full & wait-on http-get://localhost:3000',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
},
projects: [
{
name: 'chromium',

View File

@@ -21,7 +21,7 @@ const app = express();
// -------------------------------------------------------------------
async function ensureAdminUser() {
const adminEmail = process.env.ADMIN_EMAIL || 'admin@gymflow.ai';
const adminPassword = process.env.ADMIN_PASSWORD || 'admin1234';
const adminPassword = process.env.ADMIN_PASSWORD || 'admin123';
// Use the singleton prisma client
const prisma = (await import('./lib/prisma')).default;