From a47c4e3991596312013e39bf7235d2bb3a2be922 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Sat, 14 Nov 2020 16:15:42 +0000 Subject: [PATCH] Fixing dolphin'd code --- models/pages/captcha.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';