Closed (fixed)
Project:
Secure Login
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2007 at 06:08 UTC
Updated:
13 Dec 2007 at 17:48 UTC
If a user visits ?q=user and then tries to authenticate using form id=user-login, the url is not rewritten to https
I simply added another line to securelogin.module so that it looks like this:
function securelogin_form_alter($form_id, &$form) {
if( ($form_id == 'user_login_block' && variable_get('securelogin_loginform', TRUE) == TRUE)
|| ($form_id == 'user_login' && variable_get('securelogin_loginform', TRUE) == TRUE)
|| ($form_id == 'user_edit' && variable_get('securelogin_editform', TRUE) == TRUE)
|| ($form_id == 'user_register' && variable_get('securelogin_registerform', TRUE) == TRUE)
)
It seems to work fine, but it could be improved.
Comments
Comment #1
avf commentedYou have an old version. This is fixed in the latest version.