You are here

function tfa_delete_code in Two-factor Authentication (TFA) 6

Same name and namespace in other branches
  1. 7 tfa.module \tfa_delete_code()

Delete a code for a user.

Parameters

int $uid UID of account.:

1 call to tfa_delete_code()
tfa_user in ./tfa.module
Implements hook_user().

File

./tfa.module, line 295
Two-factor authentication for Drupal.

Code

function tfa_delete_code($uid) {
  db_query("DELETE FROM {tfa} WHERE uid = %d", $uid);
}