You are here

function cas_user_logout in CAS 2.x

Same name and namespace in other branches
  1. 8 cas.module \cas_user_logout()

Implements hook_user_logout().

Remove data from the cas_login_data table for this user's session.

File

./cas.module, line 279
Provides CAS authentication for Drupal.

Code

function cas_user_logout($account) {
  \Drupal::database()
    ->delete('cas_login_data')
    ->condition('plainsid', \Drupal::service('session')
    ->getId())
    ->execute();
}