function _cas_external_user_is_blocked in CAS 6.3
Same name and namespace in other branches
- 5.4 cas.module \_cas_external_user_is_blocked()
- 5.3 cas.module \_cas_external_user_is_blocked()
- 6.2 cas.module \_cas_external_user_is_blocked()
- 7 cas.module \_cas_external_user_is_blocked()
Determine whether a CAS user is blocked.
Parameters
$cas_name: The CAS username.
Return value
Boolean TRUE if the user is blocked, FALSE if the user is active.
1 call to _cas_external_user_is_blocked()
- cas_login_check in ./
cas.module - Checks to see if the user needs to be logged in.
File
- ./
cas.module, line 1117 - 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_external_user_is_blocked($cas_name) {
$deny = db_fetch_object(db_query("SELECT u.name FROM {users} u JOIN {cas_user} c ON u.uid=c.uid WHERE u.status = 0 AND c.cas_name = '%s'", $cas_name));
return $deny;
}