You are here

function cas_user_logout in CAS 8

Same name and namespace in other branches
  1. 2.x 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 277
Provides CAS authentication for Drupal.

Code

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