Skip to content
Snippets Groups Projects
Commit cc942226 authored by Tim Steiner's avatar Tim Steiner
Browse files

If a user manages to find the password reset page, redirect them to UNL's password reset page.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@183 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 3c321442
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,22 @@ function unl_cas_form_alter(&$form, $form_state, $form_id)
$form['#validate'][] = 'unl_cas_user_profile_form_validate';
}
if ($form_id = 'user_pass') {
$form['message'] = array(
'#prefix' => '<p>',
'#markup' => t('To reset your password, go somewhere else!'),
'#suffix' => '</p>'
);
unset($form['name']);
unset($form['mail']);
unset($form['actions']);
$form['#validate'] = array();
$form['#submit'] = array();
drupal_goto('https://login.unl.edu/faq/account-changepw.shtml');
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment