--- cas.module.old	2010-05-26 12:47:33.914499862 -0500
+++ cas.module	2010-05-26 13:28:21.802480389 -0500
@@ -1064,43 +1064,45 @@ function cas_form_alter(&$form, $form_st
     case 'user_login':    
     case 'user_login_block':
       if (variable_get('cas_login_form', CAS_NO_LINK) == CAS_NO_LINK) {
+          break; //don't do anything
+      }
+      elseif (variable_get('cas_login_form', CAS_ADD_LINK) == CAS_ADD_LINK || variable_get('cas_login_form', CAS_MAKE_DEFAULT) == CAS_MAKE_DEFAULT) {
+        drupal_add_css(drupal_get_path('module', 'cas') .'/cas.css', 'module');
+        drupal_add_js(drupal_get_path('module', 'cas') .'/cas.js');
+        if ($form_state['post']['cas_identifier'] == 1) {
+          $form['name']['#required'] = FALSE;
+          $form['pass']['#required'] = FALSE;
+          unset($form['#submit']);
+          $form['#validate'] = array('cas_login_validate');
+        }
+
+        $items = array();
+        $items[] = array(
+          'data' => l(t(variable_get('cas_login_invite', CAS_LOGIN_INVITE_DEFAULT)),'', array('fragment' => ' ', 'external' => TRUE)),
+          'class' => 'cas-link',
+        );
+        $items[] = array(
+          'data' => l(t(variable_get('cas_login_drupal_invite', CAS_LOGIN_DRUPAL_INVITE_DEFAULT)),'', array('fragment' => ' ', 'external' => TRUE)),
+          'class' => 'uncas-link',
+        );
+
+        $form['cas_links'] = array(
+          '#value' => theme('item_list', $items),
+          '#weight' => 1,
+        );
+
+        $form['links']['#weight'] = 2;
+
+        $form['cas_identifier'] = array(
+          '#type' => 'checkbox',
+          '#title' => t('Log in using NetID'),
+          '#default_value' => (variable_get('cas_login_form', CAS_NO_LINK) == CAS_ADD_LINK ? 0 : 1),
+          '#weight' => -1,
+          '#description' => t(variable_get('cas_login_redir_message', CAS_LOGIN_REDIR_MESSAGE)),
+        );
+        $form['cas.return_to'] = array('#type' => 'hidden', '#value' => 'cas');
         break;
       }
-      drupal_add_css(drupal_get_path('module', 'cas') .'/cas.css', 'module');
-      drupal_add_js(drupal_get_path('module', 'cas') .'/cas.js');
-      if ($form_state['post']['cas_identifier'] == 1) {
-        $form['name']['#required'] = FALSE;
-        $form['pass']['#required'] = FALSE;
-        unset($form['#submit']);
-        $form['#validate'] = array('cas_login_validate');
-      }
-
-      $items = array();
-      $items[] = array(
-        'data' => l(t(variable_get('cas_login_invite',CAS_LOGIN_INVITE_DEFAULT)),'', array('fragment' => ' ', 'external' => TRUE)),
-        'class' => 'cas-link',
-      );
-      $items[] = array(
-        'data' => l(t(variable_get('cas_login_drupal_invite',CAS_LOGIN_DRUPAL_INVITE_DEFAULT)),'', array('fragment' => ' ', 'external' => TRUE)), 
-        'class' => 'uncas-link',
-      );
-      
-      $form['cas_links'] = array(
-        '#value' => theme('item_list', $items),
-        '#weight' => 1,
-      );
-
-      $form['links']['#weight'] = 2;
-
-      $form['cas_identifier'] = array(
-        '#type' => 'checkbox',
-        '#title' => t('Log in using NetID'),
-        '#default_value' => (variable_get('cas_login_form', CAS_NO_LINK) == CAS_ADD_LINK ? 0 : 1),
-        '#weight' => -1,
-        '#description' => t(variable_get('cas_login_redir_message',CAS_LOGIN_REDIR_MESSAGE)),
-      );
-      $form['cas.return_to'] = array('#type' => 'hidden', '#value' => 'cas');
-      break;
 
     
     case 'user_profile_form':
