You are here

function cas_user_is_logged_in in CAS 7

Same name and namespace in other branches
  1. 6.3 cas.module \cas_user_is_logged_in()
1 string reference to 'cas_user_is_logged_in'
cas_menu in ./cas.module
Implements hook_menu().

File

./cas.module, line 429
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_user_is_logged_in() {
  return user_is_logged_in() || !empty($_SESSION['phpCAS']['user']);
}