* Set the default to 3 instead of 1, to be more forgiving of mistyped passwords. Unlikely to help bots much; quite likely to help blind people who aren't really really really careful typers.
* Commit some whitespace change I had lying around.
$ceAllowConfirmedEmail = false;
/**
- * Number of bad login attempts allowed before triggering the captcha.
- *
- * Default is 0.
+ * Number of bad login attempts before triggering the captcha. 0 means the
+ * captcha is presented on the first login.
*/
global $wgCaptchaBadLoginAttempts;
-$wgCaptchaBadLoginAttempts = 0;
+$wgCaptchaBadLoginAttempts = 3;
/**
* Regex to whitelist URLs to known-good sites...
*/
function isBadLoginTriggered() {
global $wgMemc, $wgCaptchaBadLoginAttempts;
- return intval( $wgMemc->get( $this->badLoginKey() ) ) > $wgCaptchaBadLoginAttempts;
+ return intval( $wgMemc->get( $this->badLoginKey() ) ) >= $wgCaptchaBadLoginAttempts;
}
/**