Page MenuHomePhabricator

captcha on badlogin isn't working
Closed, InvalidPublic

Description

I have the following in my LocalSettings.php:

require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";
require_once "$IP/extensions/ConfirmEdit/QuestyCaptcha.php";
// question setup
$wgCaptchaClass = 'QuestyCaptcha';
$wgMainCacheType    = CACHE_ANYTHING;
$wgCaptchaTriggers['edit']          = true;
$wgCaptchaTriggers['create']        = true;
$wgCaptchaTriggers['createtalk']    = true;
$wgCaptchaTriggers['addurl']        = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin']      = true;

Captchas work on page creation but not on bad login. I can see badlogin being checked in the debug log, but when I enter a bad password, I'm not prompted with a captcha.

The docs seem to indicate that I should get a captcha:

'badlogin' - triggered on the next login attempt after a failed one. Requires
$wgMainCacheType to be set to something other than CACHE_NONE.

Version: REL1_19-branch
Severity: major

Details

Reference
bz56721

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:16 AM
bzimport set Reference to bz56721.
bzimport added a subscriber: Unknown Object (MLST).

Have you set $wgCaptchaBadLoginAttempts? If not, it will use the default value (3). You have to fail to login at least 3 times, before the CAPTCHA will be added (i have tested it, and it works) :)

Tgr closed this task as Invalid.Nov 3 2017, 3:24 AM
Tgr added a subscriber: Tgr.

Also tested at the time of the AuthManager upgrade and was also working then. I'll close this as unreproducible.