misc: simplified captcha flag and finalized build process

This commit is contained in:
Sheen Capadngan
2024-06-10 13:24:44 +08:00
parent 610dd07a57
commit 0bbb86ee2a
7 changed files with 18 additions and 5 deletions
@@ -204,7 +204,7 @@ export const authLoginServiceFactory = ({
if (
user.consecutiveFailedPasswordAttempts &&
user.consecutiveFailedPasswordAttempts >= 10 &&
appCfg.CAPTCHA_ENABLED
Boolean(appCfg.CAPTCHA_SECRET)
) {
if (!captchaToken) {
throw new BadRequestError({