Compare commits
2 Commits
release-1.
...
4c3e6cd384
| Author | SHA1 | Date | |
|---|---|---|---|
| 4c3e6cd384 | |||
| 55fb17634d |
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -314,7 +314,7 @@ stage('SonarQube Quality Gate') {
|
|||||||
|
|
||||||
steps {
|
steps {
|
||||||
timeout(time: 5, unit: 'MINUTES') {
|
timeout(time: 5, unit: 'MINUTES') {
|
||||||
waitForQualityGate abortPipeline: false
|
waitForQualityGate abortPipeline: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
|
require('dotenv').config()
|
||||||
|
|
||||||
const bcrypt = require('bcrypt')
|
const bcrypt = require('bcrypt')
|
||||||
const prisma = require('../config/prisma')
|
const prisma = require('../config/prisma')
|
||||||
|
|
||||||
async function createAdmin() {
|
async function createAdmin() {
|
||||||
const email = 'admin@thetiptop.fr'
|
const email = process.env.ADMIN_EMAIL
|
||||||
const password = 'Admin@TipTop2026!'
|
const password = process.env.ADMIN_PASSWORD
|
||||||
|
|
||||||
|
if (!email || !password) {
|
||||||
|
throw new Error('ADMIN_EMAIL et ADMIN_PASSWORD doivent être définis')
|
||||||
|
}
|
||||||
|
|
||||||
const existing = await prisma.user.findUnique({ where: { email } })
|
const existing = await prisma.user.findUnique({ where: { email } })
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user