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) {
|
||||
|
||||
Reference in New Issue
Block a user