You are here

function tokenauth_user_reset in Token authentication 5

Same name and namespace in other branches
  1. 6.2 tokenauth.inc \tokenauth_user_reset()
  2. 6 tokenauth.inc \tokenauth_user_reset()

Reset a users token.

1 call to tokenauth_user_reset()
tokenauth_user_reset_confirm_submit in ./tokenauth.module
Handler for reset tokens confirmation

File

./tokenauth.module, line 191

Code

function tokenauth_user_reset() {
  global $user;
  $length = variable_get('tokenauth_length', 10);
  $sql = "UPDATE {tokenauth_tokens} SET token = '%s' WHERE uid = %d";
  db_query($sql, user_password($length), $user->uid);
}