public function GALoginTotpSetup::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/ GALoginTotpSetup.php, line 133
Class
- GALoginTotpSetup
- TOTP setup class to setup TOTP validation.
Namespace
Drupal\ga_login\Plugin\TfaSetupCode
public function submitSetupForm(array $form, FormStateInterface $form_state) {
// Write seed for user.
$this
->storeSeed($this->seed);
return TRUE;
}