public function EntryForm::finalize in Two-factor Authentication (TFA) 8
Run TFA process finalization.
1 call to EntryForm::finalize()
- EntryForm::submitForm in src/
Form/ EntryForm.php - If the form is passes validation, the user should get logged in.
File
- src/
Form/ EntryForm.php, line 287
Class
- EntryForm
- TFA entry form.
Namespace
Drupal\tfa\FormCode
public function finalize() {
// Invoke plugin finalize.
if (method_exists($this->tfaValidationPlugin, 'finalize')) {
$this->tfaValidationPlugin
->finalize();
}
// Allow login plugins to act during finalization.
if (!empty($this->tfaLoginPlugins)) {
foreach ($this->tfaLoginPlugins as $plugin) {
if (method_exists($plugin, 'finalize')) {
$plugin
->finalize();
}
}
}
}