|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
const { Captchas, Ratelimits } = require(__dirname+'/../../db/') |
|
|
|
const { Captchas, Ratelimits } = require(__dirname+'/../../db/') |
|
|
|
, { secureCookies, rateLimitCost, captchaOptions } = require(__dirname+'/../../configs/main.js') |
|
|
|
, { 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`) |
|
|
|
? require(__dirname+`/../../helpers/captcha/generators/${captchaOptions.type}.js`) |
|
|
|
: null |
|
|
|
: null |
|
|
|
, production = process.env.NODE_ENV === 'production'; |
|
|
|
, production = process.env.NODE_ENV === 'production'; |
|
|
|