public function GALoginTotpSetup::__construct in Google Authenticator login 8
Constructs a new Tfa plugin object.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin id.
mixed $plugin_definition: The plugin definition.
\Drupal\user\UserDataInterface $user_data: User data object to store user specific information.
\Drupal\encrypt\EncryptionProfileManagerInterface $encryption_profile_manager: Encryption profile manager.
\Drupal\encrypt\EncryptServiceInterface $encrypt_service: Encryption service.
Overrides GALoginTotpValidation::__construct
File
- src/
Plugin/ TfaSetup/ GALoginTotpSetup.php, line 50
Class
- GALoginTotpSetup
- TOTP setup class to setup TOTP validation.
Namespace
Drupal\ga_login\Plugin\TfaSetupCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, UserDataInterface $user_data, EncryptionProfileManagerInterface $encryption_profile_manager, EncryptServiceInterface $encrypt_service, ConfigFactoryInterface $config_factory, TimeInterface $time) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $user_data, $encryption_profile_manager, $encrypt_service, $config_factory, $time);
// Generate seed.
$this
->setSeed($this
->createSeed());
}