function securelogin_user_pass_reset in Secure Login 7
Menu callback; ensures password reset form is secure before logging in.
1 string reference to 'securelogin_user_pass_reset'
- securelogin_menu_alter in ./
securelogin.module - Implements hook_menu_alter().
File
- ./
securelogin.module, line 50 - Enables user login and other forms to be submitted securely via HTTPS.
Code
function securelogin_user_pass_reset() {
if (drupal_is_https() || !variable_get('securelogin_form_user_pass_reset', FALSE)) {
return call_user_func_array('drupal_get_form', func_get_args());
}
$destination = isset($_GET['destination']) ? drupal_get_destination() : array();
unset($_GET['destination']);
drupal_goto($_GET['q'], array(
'query' => drupal_get_query_parameters() + $destination,
'https' => TRUE,
'external' => FALSE,
));
}