Index: trunk/extensions/ConfirmEdit/ConfirmEdit_body.php |
— | — | @@ -204,8 +204,8 @@ |
205 | 205 | * @access private |
206 | 206 | */ |
207 | 207 | function isBadLoginTriggered() { |
208 | | - global $wgMemc; |
209 | | - return intval( $wgMemc->get( $this->badLoginKey() ) ) > 0; |
| 208 | + global $wgMemc, $wgCaptchaBadLoginAttempts; |
| 209 | + return intval( $wgMemc->get( $this->badLoginKey() ) ) > $wgCaptchaBadLoginAttempts; |
210 | 210 | } |
211 | 211 | |
212 | 212 | /** |
Index: trunk/extensions/ConfirmEdit/ConfirmEdit.php |
— | — | @@ -149,6 +149,14 @@ |
150 | 150 | global $ceAllowConfirmedEmail; |
151 | 151 | $ceAllowConfirmedEmail = false; |
152 | 152 | |
| 153 | +/** |
| 154 | + * Number of bad login attempts allowed before triggering the captcha. |
| 155 | + * |
| 156 | + * Default is 0. |
| 157 | + */ |
| 158 | +global $wgCaptchaBadLoginAttempts; |
| 159 | +$wgCaptchaBadLoginAttempts = 0; |
| 160 | + |
153 | 161 | /** |
154 | 162 | * Regex to whitelist URLs to known-good sites... |
155 | 163 | * For instance: |