You are here

public function TfaTestLogin::loginAllowed in Two-factor Authentication (TFA) 7.2

Whether authentication should be interrupted.

Return value

bool Indicates whether authentication should be interrupted.

Overrides TfaLoginPluginInterface::loginAllowed

File

tests/includes/tfa_test.login.inc, line 31
Tests for the TfaLoginPluginInterface.

Class

TfaTestLogin
Class TfaTestLogin.

Code

public function loginAllowed() {
  if ($this->context['uid'] === $this->loginUid) {
    return TRUE;
  }
  return FALSE;
}