You are here

protected function TfaBasicRecoveryCodeSetup::generateCodes in TFA Basic plugins 7

Generate recovery codes.

Note, these are un-encrypted codes. For any long-term storage be sure to encrypt.

Return value

array

1 call to TfaBasicRecoveryCodeSetup::generateCodes()
TfaBasicRecoveryCodeSetup::getSetupForm in includes/tfa_recovery.inc
@copydoc TfaSetupPluginInterface::getSetupForm()

File

includes/tfa_recovery.inc, line 234
class for TFA Basic

Class

TfaBasicRecoveryCodeSetup
Class TfaBasicRecoveryCode

Code

protected function generateCodes() {
  $codes = array();
  for ($i = 0; $i < $this->codeLimit; $i++) {
    $codes[] = $this
      ->generate();
  }
  return $codes;
}