From 610dd07a57a79667f48afe80e76e1caf221d1130 Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Sat, 8 Jun 2024 00:39:14 +0800 Subject: [PATCH] misc: updated failed password attempt limit for captcha --- backend/src/services/auth/auth-login-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/auth/auth-login-service.ts b/backend/src/services/auth/auth-login-service.ts index 2f8a7c578..dc5a39008 100644 --- a/backend/src/services/auth/auth-login-service.ts +++ b/backend/src/services/auth/auth-login-service.ts @@ -203,7 +203,7 @@ export const authLoginServiceFactory = ({ if ( user.consecutiveFailedPasswordAttempts && - user.consecutiveFailedPasswordAttempts > 10 && + user.consecutiveFailedPasswordAttempts >= 10 && appCfg.CAPTCHA_ENABLED ) { if (!captchaToken) {