diff --git a/acquia_spi/acquia_spi.module b/acquia_spi/acquia_spi.module index a4ae9b7..81f5f8c 100644 --- a/acquia_spi/acquia_spi.module +++ b/acquia_spi/acquia_spi.module @@ -662,7 +662,26 @@ function acquia_spi_check_login() { if (!variable_get('securepages_secure', FALSE) || !variable_get('securepages_enable', FALSE)) { $login_safe = 0; } - + } + elseif (module_exists('securelogin')) { + // All the required forms should be enabled. + $required_forms = array( + 'securelogin_registerform', + 'securelogin_redirect', + 'securelogin_profileform', + 'securelogin_loginform', + ); + $forms_safe = TRUE; + foreach ($required_forms as $form_variable) { + if (!variable_get($form_variable, TRUE)) { + $forms_safe = FALSE; + break; + } + } + // $conf['https'] should be false for expected behavior + if ($forms_safe && !variable_get('https', FALSE)) { + $login_safe = 1; + } } return $login_safe;