You are here

function oauth2_server_user_update in OAuth2 Server 7

Implements hook_user_update().

File

./oauth2_server.module, line 165
Provides OAuth2 server functionality.

Code

function oauth2_server_user_update(&$edit, $account) {

  // Delete a user's tokens if the account is blocked.
  if ($account->status == 0) {
    oauth2_server_delete_user_tokens($account->uid);
  }
}