From 35baf6b893021503a26a35fbf643d24a7da6de71 Mon Sep 17 00:00:00 2001 From: Menci Date: Wed, 27 Mar 2019 16:26:42 +0800 Subject: [PATCH] Fix config validate --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index aeaa9fe..d004a82 100644 --- a/app.js +++ b/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();