Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
If your site gets stuck in Maintenance Mode the images for the captcha won't load (ie they 404 because the site is in maint mode).
This means - if you have the site set up to use image captcha for login - you can't login if the site is in Maint Mode...
The 'way around this' is to take the site out of maint mode at the command line (drush state-set system.maintenance_mode 0) but thought I'd mention this as a bug.
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#3 | cannot_login_to_site-2899256-3.patch | 768 bytes | gg24 |
| |||
#2 | cannot_login_to_site-2899256-2.patch | 842 bytes | gg24 |
|
Comments
Comment #2
gg24 CreditAttribution: gg24 as a volunteer and at QED42 commentedHi,
In maintenance mode, the image CAPTCHA does not work because the request for the image itself won't succeed (only ?q=user is permitted for unauthenticated users). We fall back to the Math CAPTCHA in that case. I have added a patch to fix this issue.
Please review the patch.
Thanks!
Comment #3
gg24 CreditAttribution: gg24 as a volunteer and at QED42 commentedRemoved extra variable.
Thanks!
Comment #4
purushotam.rai CreditAttribution: purushotam.rai at QED42 commentedLooks good To Me
Comment #6
elachlan CreditAttribution: elachlan commented