Index: cas.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cas/cas.module,v
retrieving revision 1.46
diff -u -r1.46 cas.module
--- cas.module	7 May 2009 14:45:34 -0000	1.46
+++ cas.module	28 May 2009 17:50:57 -0000
@@ -779,9 +779,10 @@
  * implementation of hook_form_alter
  * Overrides specific from settings based on user policy.
  */
-function cas_form_alter(&$form, $formid, $form_state) {
+function cas_form_alter(&$form, $form_state, $form_id) {
+  //drupal_set_message($form_id.'<pre>'.print_r($form,1).'</pre>');
   switch ($form_id) {
-    case 'user_edit':
+    case 'user_profile_form':
       //make the email field hidden and force the value to the default.
       if (variable_get('cas_hide_email', 0)) {
         if (variable_get('cas_domain', '')) {
