public function TfaBasicRecoveryCodeSetup::__construct in TFA Basic plugins 7
Plugin constructor.
Parameters
array $context: Context of current TFA process. Must include key:
- 'uid' Account uid of user in TFA process.
May include keys:
- 'validate_context' Plugin-specific context for use during Tfa validation.
- 'setup_context' Plugin-specific context for use during TfaSetup.
Overrides TfaBasicRecoveryCode::__construct
File
- includes/
tfa_recovery.inc, line 145 - class for TFA Basic
Class
- TfaBasicRecoveryCodeSetup
- Class TfaBasicRecoveryCode
Code
public function __construct(array $context) {
parent::__construct($context);
$this->codeLimit = variable_get('tfa_recovery_codes_amount', 10);
}