You are here

public function GALoginHotpSetup::submitSetupForm in Google Authenticator login 8

Submit the setup form.

Parameters

array $form: The configuration form array.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

bool TRUE if no errors occur when saving the data.

Overrides TfaSetupInterface::submitSetupForm

File

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

Class

GALoginHotpSetup
HOTP setup class to setup HOTP validation.

Namespace

Drupal\ga_login\Plugin\TfaSetup

Code

public function submitSetupForm(array $form, FormStateInterface $form_state) {

  // Write seed for user.
  $this
    ->storeSeed($this->seed);
  return TRUE;
}