You are here

function tfa_resend_code in Two-factor Authentication (TFA) 7

Resend code.

1 string reference to 'tfa_resend_code'
tfa_code_form in ./tfa.pages.inc
Form for code entry.

File

./tfa.pages.inc, line 99
tfa.pages.inc

Code

function tfa_resend_code($form, &$form_state) {
  $account = user_load($form['uid']['#value']);
  $code = tfa_generate_code($account);
  tfa_store_code($account->uid, $code);
  tfa_tfa_process($account);
}