Failed login attempts before a CAPTCHA is required

auth.captcha.login.afterFailures

This dynamic configuration parameter sets after how many failed login attempts logging in with an email and password requires solving a CAPTCHA challenge, both in the Administration UI and in the comments widget on any domain.

  • Once an account has had this many failed attempts in a row (the default is 3), every further login to it requires solving a challenge, whether the password is right or not. The login page and the comments widget show the challenge when the server asks for it.
  • If set to 0, login never requires a challenge.

The challenge is that of the CAPTCHA in effect where the user logs in: the CAPTCHA provider for Administration UI in the Administration UI, or the domain’s CAPTCHA extension in the comments widget. Where there’s none, or its keys are missing from the secrets, it’s the built-in proof of work, which needs no setup. Only if proof of work is disabled in the secrets as well does such a login go ahead without a challenge.

The count is kept per account, which is why the setting is instance-wide: an account past the threshold needs a challenge wherever it’s used to log in, so there’s no way around it through a domain or a login page without a CAPTCHA. It’s the same count that Max. failed login attempts uses to lock an account, and it goes back to zero at the first successful login. A challenge that isn’t solved, or is solved wrong, doesn’t count as a failed attempt. Keeping this setting below the lockout limit makes guessing passwords costly long before the account gets locked, which lets you raise the lockout limit, or turn the lockout off, so that nobody can lock a user out just by entering wrong passwords.

Attempts with an email that has no account can’t be counted, so they never require a challenge.

If a third-party provider can’t be reached, or rejects its secret, the login goes ahead without the challenge. That way an outage of the provider never locks anybody out, including the superusers who would have to fix it; the lockout still limits password guessing in the meantime.

See also