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

Breadcrumb

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

function UserAuthInterface::authenticate

Validates user authentication credentials.

Parameters

string $username: The user name to authenticate.

string $password: A plain-text password, such as trimmed text from form values.

Return value

int|bool The user's uid on success, or FALSE on failure to authenticate.

File

core/modules/user/src/UserAuthInterface.php, line 21

Class

UserAuthInterface
An interface for validating user authentication credentials.

Namespace

Drupal\user

Code

public function authenticate($username, $password);
RSS feed
Powered by Drupal