You are here

function _cas_external_user_is_blocked in CAS 5.4

Same name and namespace in other branches
  1. 5.3 cas.module \_cas_external_user_is_blocked()
  2. 6.3 cas.module \_cas_external_user_is_blocked()
  3. 6.2 cas.module \_cas_external_user_is_blocked()
  4. 7 cas.module \_cas_external_user_is_blocked()
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 1090

Code

function _cas_external_user_is_blocked($name) {
  $deny = db_fetch_object(db_query("SELECT u.name FROM {users} u JOIN {authmap} m ON u.uid=m.uid WHERE status = 0 AND m.authname = LOWER('%s')", $name));
  return $deny;
}