You are here

function cas_login_block_submit in CAS 6.3

Submit handler for cas_login_block().

File

./cas.module, line 702
Enables users to authenticate via a Central Authentication Service (CAS) Cas will currently work if the auto registration is turned on and will create user accounts automatically.

Code

function cas_login_block_submit($form, &$form_state) {
  if (!empty($form_state['values']['remember'])) {
    $_SESSION['cas_remember'] = 1;
  }
  $form_state['redirect'] = url('cas', array(
    'query' => $form_state['values']['cas.return_to'],
    'absolute' => TRUE,
  ));
}