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

Remove the ability to change users' usernames when using CAS.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@159 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent bd04b0db
Branches
Tags
No related merge requests found
......@@ -91,6 +91,10 @@ function unl_cas_form_alter(&$form, $form_state, $form_id)
}
if ($form_id == 'user_profile_form') {
if (isset($form['account']['name'])) {
$form['account']['name']['#type'] = 'hidden';
}
$form['account']['pass']['#type'] = 'hidden';
$form['account']['current_pass_required_values']['#type'] = 'hidden';
$form['account']['current_pass']['#type'] = 'hidden';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment