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
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:
@@ -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) {
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
"express": "^4.18.2",
|
||||
"express-rate-limit": "^8.5.2",
|
||||
"express-session": "^1.17.3",
|
||||
"helmet": "^8.1.0",
|
||||
"multer": "^2.2.0",
|
||||
"nodemailer": "^6.10.1",
|
||||
"pg": "^8.13.0",
|
||||
|
||||
Reference in New Issue
Block a user