diff --git a/models/pages/captcha.js b/models/pages/captcha.js index b117fe66..8fc39863 100644 --- a/models/pages/captcha.js +++ b/models/pages/captcha.js @@ -2,7 +2,7 @@ const { Captchas, Ratelimits } = require(__dirname+'/../../db/') , { secureCookies, rateLimitCost, captchaOptions } = require(__dirname+'/../../configs/main.js') - , generateCaptcha = (captchaOptions.type !== 'google' && captchaOptions !== 'hcaptcha') + , generateCaptcha = (captchaOptions.type !== 'google' && captchaOptions.type !== 'hcaptcha') ? require(__dirname+`/../../helpers/captcha/generators/${captchaOptions.type}.js`) : null , production = process.env.NODE_ENV === 'production';