function UserAuthenticationInterface::lookupAccount

Same name in other branches
  1. 11.x core/modules/user/src/UserAuthenticationInterface.php \Drupal\user\UserAuthenticationInterface::lookupAccount()

Validates user authentication credentials.

Parameters

string $identifier: The user identifier to authenticate. Usually the username.

Return value

Drupal\User\UserInterface|false The user account on success, or FALSE on failure to authenticate.

1 method overrides UserAuthenticationInterface::lookupAccount()
UserAuthentication::lookupAccount in core/modules/user/src/UserAuthentication.php
Validates user authentication credentials.

File

core/modules/user/src/UserAuthenticationInterface.php, line 19

Class

UserAuthenticationInterface
An interface for validating user authentication credentials.

Namespace

Drupal\user

Code

public function lookupAccount($identifier) : UserInterface|false;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.