function tfa_basic_recovery_codes_list in TFA Basic plugins 7
Output unused recovery codes.
Parameters
stdClass $account:
Return value
string
File
- ./
tfa_basic.pages.inc, line 744
Code
function tfa_basic_recovery_codes_list($account) {
$recovery = new TfaBasicRecoveryCodeSetup(array(
'uid' => $account->uid,
));
$codes = $recovery
->getCodes();
$output = theme('item_list', array(
'items' => $codes,
));
$output .= l(t('Return to account TFA overview'), 'user/' . $account->uid . '/security/tfa');
return $output;
}