Browse Source

Fix config validate

master
Menci 6 years ago
parent
commit
35baf6b893
  1. 2
      app.js

2
app.js

@ -27,7 +27,7 @@ global.syzoj = {
async run() {
// Check config
if (syzoj.config.session_secret === '@SESSION_SECRET@'
|| syzoj.config.email_jwt_secret === '@EMAIL_JWT_SECRET@'
|| (syzoj.config.email_jwt_secret === '@EMAIL_JWT_SECRET@' && syzoj.config.register_mail)
|| syzoj.config.db.password === '@DATABASE_PASSWORD@') {
console.log('Please generate and fill the secrets in config!');
process.exit();

Loading…
Cancel
Save