You are here

function securesite_user_pass in Secure Site 7.2

Same name and namespace in other branches
  1. 8 securesite.module \securesite_user_pass()
  2. 6.2 securesite.inc \securesite_user_pass()

Form constructor for password reset form.

We use our own version of the password reset form for theming.

See also

user_pass_validate()

user_pass_submit()

2 string references to 'securesite_user_pass'
_securesite_dialog in ./securesite.inc
Display authentication dialog and send password reset mails.
_securesite_dialog_page in ./securesite.inc
Display fall-back HTML for HTTP authentication dialogs. Safari will not load this. Opera will not load this after log-out unless the page has been reloaded and the authentication dialog has been displayed twice.

File

./securesite.inc, line 521
Secure Site log-in functions.

Code

function securesite_user_pass($form, &$form_state) {
  module_load_include('inc', 'user', 'user.pages');
  $form = user_pass();
  $form['name']['#title'] = t('User name or e-mail address');
  $form_id = 'user_pass';
  drupal_alter('form', $form, $form_state, $form_id);
  $form['#redirect'] = FALSE;
  $form['#validate'][] = 'user_pass_validate';
  $form['#submit'][] = 'user_pass_submit';
  return $form;
}