You are here

function miniorange_2fa_user_delete in Google Authenticator / 2 Factor Authentication - 2FA 8.2

File

./miniorange_2fa.module, line 220
Module file for miniOrange 2FA Module.

Code

function miniorange_2fa_user_delete($account) {
  $query = \Drupal::database()
    ->delete('UserAuthenticationType');
  $query
    ->condition('uid', $account
    ->id(), '=');
  $query
    ->execute();
}