public function TfaTrustedBrowser::__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 TfaTrustedBrowser::__construct()
- TfaTrustedBrowserSetup::__construct in includes/
tfa_trusted_browser.inc - Plugin constructor.
1 method overrides TfaTrustedBrowser::__construct()
- TfaTrustedBrowserSetup::__construct in includes/
tfa_trusted_browser.inc - Plugin constructor.
File
- includes/
tfa_trusted_browser.inc, line 32 - classes for TFA basic plugin
Class
- TfaTrustedBrowser
- Class TfaTrustedBrowser
Code
public function __construct(array $context) {
parent::__construct($context);
$this->cookieName = variable_get('tfa_basic_cookie_name', 'TB');
$this->domain = variable_get('tfa_basic_cookie_domain', '');
// Expiration defaults to 30 days.
$this->expiration = variable_get('tfa_basic_trust_cookie_expiration', 3600 * 24 * 30);
}