You are here

public function TfaContext::getUser in Two-factor Authentication (TFA) 8

Get the user object.

Return value

\Drupal\user\UserInterface The entity object of the user attempting to log in.

Overrides TfaContextInterface::getUser

1 call to TfaContext::getUser()
TfaContext::doUserLogin in src/TfaContext.php
@todo Set a hash mark to indicate TFA authorization has passed.

File

src/TfaContext.php, line 119

Class

TfaContext
Provide context for the current login attempt.

Namespace

Drupal\tfa

Code

public function getUser() {
  return $this->user;
}