Closed (duplicate)
Project:
CAPTCHA
Version:
7.x-1.x-dev
Component:
Image Captcha (image_captcha)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2010 at 13:22 UTC
Updated:
13 Apr 2012 at 09:04 UTC
I'm trying out the image captcha module
It seems to work, but only as long as I stay logged in(!).
POSSIBLE WORKAROUND:
I made the following hack in image_captcha.module, line 202ff: Replace 'site_offline' with 'maintenance_mode', so now it reads
if (variable_get('maintenance_mode', FALSE) && $user->uid == 0) {
return captcha_captcha('generate', 'Math');
}
I'm not sure if it does what it's supposed to (I haven't tried to enable captchas on the user login form), but at least the image captcha shows up on my `node comment form' where I want it.
regards
Jakob.
Comments
Comment #1
soxofaan commentedthis was fixed yesterday in #983254: Captcha image not visible on user login page in site maintenance (offline) mode
thanks for reporting
Comment #2
manObject commentedSetting up Captcha can catch you out! This issue is not a bug, but the consequence of a rather nice feature that users need to keep in mind during site development and maintenance. The feature in question is that Captcha questions can be set up to bypassed by site admins. This is often done because busy site admins don't want the hassle of an extra security obstacle within the site. Instead, they rely on a very difficult login password. The problem shows up when a new (contact?) form with Captcha is set up. If you forget to switch off the Captcha question bypass for site admins, it will not show up! This is irrespective of whether the site admins are also given all the other roles that have Captcha access set up. What makes this issue difficult to spot is that the login Captcha DOES appear for site admins even when the admin bypass is in effect (Drupal doesn't know your role until you have logged in).
I hope this helps save your sanity!