Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UserAuthenticationInterface.php

function 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;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal