You are here

protected function GALoginTotpSetup::createSeed in Google Authenticator login 8

Create OTP seed for account.

Return value

string Un-encrypted seed.

1 call to GALoginTotpSetup::createSeed()
GALoginTotpSetup::__construct in src/Plugin/TfaSetup/GALoginTotpSetup.php
Constructs a new Tfa plugin object.

File

src/Plugin/TfaSetup/GALoginTotpSetup.php, line 155

Class

GALoginTotpSetup
TOTP setup class to setup TOTP validation.

Namespace

Drupal\ga_login\Plugin\TfaSetup

Code

protected function createSeed() {
  return $this->auth->ga
    ->generateRandom();
}