Login on Access Denied resets itself when module listing page is submitted and there is a module dependency for logintoboggan

jsenich - January 30, 2008 - 19:56
Project:LoginToboggan
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm having a similar issue as http://drupal.org/node/124589 but the problem only occurs when you have an enabled module that depends on logintoboggan. In this scenario the following code always resets the site_403 variable to blank because $_POST['status']['logintoboggan'] does not exist (due to the fact that the module enabled checkbox is grayed out on the module list page):

if ($_POST && !$_POST['status']['logintoboggan'] && (db_result(db_query("SELECT status FROM {system} WHERE name = 'logintoboggan'")) == 1) && (variable_get('site_403', '') == 'toboggan/denied')) {
        variable_set('site_403', '');
      }

#1

hunmonk - March 9, 2008 - 00:32
Status:active» fixed

for the record, fixing this problem sucked... ;)

it should be fixed now, though -- and in a much cleaner way than before.

applied to 5.x and 6.x

#2

Anonymous (not verified) - March 23, 2008 - 00:33
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.