From 59f177dd2e36ed26911340c2c623dcf6fdf7b01f Mon Sep 17 00:00:00 2001 From: Menci Date: Sat, 30 Mar 2019 16:12:00 +0800 Subject: [PATCH] Check config judge_token --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index 056ad4b..1a55405 100644 --- a/app.js +++ b/app.js @@ -28,6 +28,7 @@ global.syzoj = { async run() { // Check config if (syzoj.config.session_secret === '@SESSION_SECRET@' + || syzoj.config.judge_token === '@JUDGE_TOKEN@' || (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!');