I have a domain, let's say example.com, where my admins use www.example.com, so I have https://www.example.com working and I'd like to get securelogin to forward people going to http://www.example.com/user to https://www.example.com/user. I have that working, but now on my local box, which is www-dev.example.com, it's redirecting to my secure base URL https://www.example.com. I found a variable called securelogin_secure_forms, which I can put in my sites/www-dev.example.com/settings.php and it will stop the redirection, but it doesn't stop the alteration of the form action.

Am I approaching this wrong? I have multiple sub-domains other than www-dev (i.e staging, m, staging.m, and www-dev.m), so I just want to get securelogin working on the main www subdomain.

Thanks!

Comments

jason_purdy’s picture

Assigned: Unassigned » jason_purdy
Status: Active » Closed (works as designed)

Nevermind, I figured it out. For the record, if anyone wants to disable securelogin on a particular (sub)domain, overriding any database settings, just add this code to your domain settings.php:

$conf['securelogin_secure_forms'] = FALSE;
$conf['securelogin_form_user_login'] = 0;
$conf['securelogin_form_user_login_block'] = 0;
$conf['securelogin_form_user_pass_reset'] = 0;
$conf['securelogin_form_user_profile_form'] = 0;
$conf['securelogin_form_user_register_form'] = 0;
$conf['securelogin_form_user_pass'] = 0;
$conf['securelogin_form_node_form'] = 0;
$conf['securelogin_form_webform_client_form'] = 0;
$conf['securelogin_other_forms'] = '';
mfb’s picture

Also, if you have SSL working on www-dev.example.com (which is a good idea for security :) then you can just leave the secure base URL setting blank and secure login module will automagically redirect to the same domain you're already on.