You are here

public function GALoginHotpSetup::__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 GALoginHotpValidation::__construct

File

src/Plugin/TfaSetup/GALoginHotpSetup.php, line 50

Class

GALoginHotpSetup
HOTP setup class to setup HOTP validation.

Namespace

Drupal\ga_login\Plugin\TfaSetup

Code

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());
}