Añadidos settings de cookies y privacidad
Run Tests on Branches / Detect Changes (push) Successful in 17s
Run Tests on Branches / Backend Tests (push) Successful in 2m30s
Run Tests on Branches / Frontend Tests (push) Successful in 1m54s
Run Tests on Branches / Frontend Mobile Tests (push) Successful in 1m49s
Run Tests on Branches / Parapharmacy API Tests (push) Successful in 1m48s
Run Tests on Branches / PIP Platform Tests (push) Has been skipped

This commit is contained in:
Antoni Nuñez Romeu
2026-08-26 17:14:05 +02:00
parent 80c473e439
commit 97008caf31
13 changed files with 185 additions and 12 deletions
+5 -1
View File
@@ -12,7 +12,11 @@ const PG_URL = process.env.PG_URL;
async function createAdmin() {
const username = process.env.ADMIN_USERNAME || 'admin';
const password = process.env.ADMIN_PASSWORD || 'admin123';
const password = process.env.ADMIN_PASSWORD;
if (!password) {
console.error('Error: ADMIN_PASSWORD environment variable is required');
process.exit(1);
}
const passwordHash = await bcrypt.hash(password, 10);
if (PG_URL) {