We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c651aeb commit b8c5c1bCopy full SHA for b8c5c1b
src/services/identity/UsersService.ts
@@ -349,7 +349,7 @@ class UsersService {
349
// GTA-80-009 WP2: Enforce per-IP attempts;
350
const attemptsByIp = otpEntry.attemptsByIp || {}
351
const attemptsForIp = attemptsByIp[clientIp] ?? 0
352
- if (attemptsForIp >= MAX_NUM_OTP_ATTEMPTS) {
+ if (attemptsForIp > MAX_NUM_OTP_ATTEMPTS) {
353
// should this delete the otpEntry as well?
354
return errAsync(new BadRequestError("Max number of attempts reached"))
355
}
0 commit comments