You are here

public function TfaTrustedBrowserSetup::validateSetupForm in Two-factor Authentication (TFA) 8

Validate the setup data.

Parameters

array $form: The configuration form array.

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

Return value

bool Whether or not form passes validation.

Overrides TfaSetupInterface::validateSetupForm

File

src/Plugin/TfaSetup/TfaTrustedBrowserSetup.php, line 120

Class

TfaTrustedBrowserSetup
TFA Trusted Browser Setup Plugin.

Namespace

Drupal\tfa\Plugin\TfaSetup

Code

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

  // Do nothing, no validation required.
  return TRUE;
}