global $ceAllowConfirmedEmail;
$ceAllowConfirmedEmail = false;
+/**
+ * Number of bad login attempts allowed before triggering the captcha.
+ *
+ * Default is 0.
+ */
+global $wgCaptchaBadLoginAttempts;
+$wgCaptchaBadLoginAttempts = 0;
+
/**
* Regex to whitelist URLs to known-good sites...
* For instance:
* @access private
*/
function isBadLoginTriggered() {
- global $wgMemc;
- return intval( $wgMemc->get( $this->badLoginKey() ) ) > 0;
+ global $wgMemc, $wgCaptchaBadLoginAttempts;
+ return intval( $wgMemc->get( $this->badLoginKey() ) ) > $wgCaptchaBadLoginAttempts;
}
/**