Index: trunk/extensions/LinkSearch/LinkSearch_body.php |
— | — | @@ -6,7 +6,6 @@ |
7 | 7 | } |
8 | 8 | |
9 | 9 | function execute( $par ) { |
10 | | - |
11 | 10 | wfLoadExtensionMessages( 'LinkSearch' ); |
12 | 11 | |
13 | 12 | $this->setHeaders(); |
Index: trunk/extensions/ConfirmEdit/ConfirmEdit_body.php |
— | — | @@ -205,7 +205,7 @@ |
206 | 206 | */ |
207 | 207 | function isBadLoginTriggered() { |
208 | 208 | global $wgMemc, $wgCaptchaBadLoginAttempts; |
209 | | - return intval( $wgMemc->get( $this->badLoginKey() ) ) > $wgCaptchaBadLoginAttempts; |
| 209 | + return intval( $wgMemc->get( $this->badLoginKey() ) ) >= $wgCaptchaBadLoginAttempts; |
210 | 210 | } |
211 | 211 | |
212 | 212 | /** |
Index: trunk/extensions/ConfirmEdit/ConfirmEdit.php |
— | — | @@ -150,12 +150,11 @@ |
151 | 151 | $ceAllowConfirmedEmail = false; |
152 | 152 | |
153 | 153 | /** |
154 | | - * Number of bad login attempts allowed before triggering the captcha. |
155 | | - * |
156 | | - * Default is 0. |
| 154 | + * Number of bad login attempts before triggering the captcha. 0 means the |
| 155 | + * captcha is presented on the first login. |
157 | 156 | */ |
158 | 157 | global $wgCaptchaBadLoginAttempts; |
159 | | -$wgCaptchaBadLoginAttempts = 0; |
| 158 | +$wgCaptchaBadLoginAttempts = 3; |
160 | 159 | |
161 | 160 | /** |
162 | 161 | * Regex to whitelist URLs to known-good sites... |