You are here

function tfa_basic_drush_sql_sync_sanitize in TFA Basic plugins 7

Implements hook_sql_sync_sanitize().

File

./tfa_basic.drush.inc, line 11
Drush integration for TFA Basic.

Code

function tfa_basic_drush_sql_sync_sanitize($site) {
  $sql = "TRUNCATE TABLE tfa_totp_seed;";
  $sql .= "TRUNCATE TABLE tfa_trusted_browser;";
  $sql .= "TRUNCATE TABLE tfa_recovery_code;";
  $sql .= "TRUNCATE TABLE tfa_accepted_code;";
  drush_sql_register_post_sync_op('tfa_basic', dt('Remove sensitive TFA data.'), $sql);
}