You are here

public function TfaBasicRecoveryCode::__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 TfaBasePlugin::__construct

1 call to TfaBasicRecoveryCode::__construct()
TfaBasicRecoveryCodeSetup::__construct in includes/tfa_recovery.inc
Plugin constructor.
1 method overrides TfaBasicRecoveryCode::__construct()
TfaBasicRecoveryCodeSetup::__construct in includes/tfa_recovery.inc
Plugin constructor.

File

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

Class

TfaBasicRecoveryCode
Class TfaBasicRecoveryCode

Code

public function __construct(array $context) {
  parent::__construct($context);

  // Set in settings.php.
  $this->encryptionKey = variable_get('tfa_basic_secret_key', drupal_get_private_key());
}