You are here

function tfa_delete_code in Two-factor Authentication (TFA) 7

Same name and namespace in other branches
  1. 6 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_login in ./tfa.module
Implements hook_user_login().

File

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

Code

function tfa_delete_code($uid) {
  db_delete('tfa')
    ->condition('uid', $uid)
    ->execute();
}