You are here

public function TfaTrustedBrowser::loginAllowed in TFA Basic plugins 7

Return value

bool

Overrides TfaLoginPluginInterface::loginAllowed

File

includes/tfa_trusted_browser.inc, line 43
classes for TFA basic plugin

Class

TfaTrustedBrowser
Class TfaTrustedBrowser

Code

public function loginAllowed() {
  if (isset($_COOKIE[$this->cookieName]) && ($did = $this
    ->trustedBrowser($_COOKIE[$this->cookieName])) !== FALSE) {
    $this
      ->setUsed($did);
    return TRUE;
  }
  return FALSE;
}