You are here

function login_security_user_update in Login Security 7

Same name and namespace in other branches
  1. 8 login_security.module \login_security_user_update()
  2. 2.x login_security.module \login_security_user_update()

Implements hook_user_update().

File

./login_security.module, line 67
Login Security

Code

function login_security_user_update(&$edit, &$account, $category = NULL) {

  // The update case can be launched by the user or by any administrator.
  // On update, remove only the unser information tracked.
  if ($account->status != 0) {

    // Don't remove tracking events if account is being blocked.
    _login_security_remove_events($account->name);
  }
}