You are here

function tfa_cron in Two-factor Authentication (TFA) 6

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

Implements hook_cron().

File

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

Code

function tfa_cron() {

  // Remove entries from the tfa table that are older than 1 day.
  db_query('DELETE FROM {tfa} WHERE created < %d', time() - 86400);
}