You are here

public function TfaTrustedBrowser::finalize in Two-factor Authentication (TFA) 8

Finalize the browser setup.

Throws

\Exception

File

src/Plugin/TfaLogin/TfaTrustedBrowser.php, line 104

Class

TfaTrustedBrowser
Trusted browser validation class.

Namespace

Drupal\tfa\Plugin\TfaLogin

Code

public function finalize() {
  if ($this->trustBrowser) {
    $name = $this
      ->getAgent();
    $this
      ->setTrusted($this
      ->generateBrowserId(), $name);
  }
}