You are here

function shib_auth_profile_user_login in Shibboleth Authentication 7.4

Implements hook_user_login().

File

shib_auth_profile/shib_auth_profile.module, line 62
Drupal Shibboleth authentication profile module.

Code

function shib_auth_profile_user_login(&$edit, $account) {

  // Update user fields as long as we have a valid session and are not
  // masquerading.
  if (shib_auth_session_valid() && !isset($_SESSION['masquerading']) && !isset($account->masquerading)) {
    $edit_fields = _shib_auth_update_fields('login');
    user_save($account, $edit_fields);
  }
}