function security_questions_user_pass_submit in Security Questions 7.2
Same name and namespace in other branches
- 6.2 security_questions.module \security_questions_user_pass_submit()
Submission handler for security_questions_form_user_pass_alter().
1 string reference to 'security_questions_user_pass_submit'
File
- ./
security_questions.module, line 517 - Main module file for security_questions.
Code
function security_questions_user_pass_submit($form, &$form_state) {
// If the user is allowed to bypass or has already answered the challenge,
// hand off to the normal password reset submission handler.
$account = $form_state['values']['account'];
if (security_questions_bypass_challenge($account) || !empty($form_state['security_questions']['passed_challenge'])) {
user_pass_submit($form, $form_state);
}
else {
$form_state['security_questions']['uid'] = $account->uid;
$form_state['rebuild'] = TRUE;
}
}