interface UserAuthInterface in Drupal 9
Same name and namespace in other branches
- 8 core/modules/user/src/UserAuthInterface.php \Drupal\user\UserAuthInterface
An interface for validating user authentication credentials.
Hierarchy
- interface \Drupal\user\UserAuthInterface
Expanded class hierarchy of UserAuthInterface
All classes that implement UserAuthInterface
5 files declare their use of UserAuthInterface
- BasicAuth.php in core/
modules/ basic_auth/ src/ Authentication/ Provider/ BasicAuth.php - UserAuthenticationController.php in core/
modules/ user/ src/ Controller/ UserAuthenticationController.php - UserAuthenticationControllerTest.php in core/
modules/ user/ tests/ src/ Kernel/ Controller/ UserAuthenticationControllerTest.php - UserLoginForm.php in core/
modules/ user/ src/ Form/ UserLoginForm.php - UserLoginFormTest.php in core/
modules/ user/ tests/ src/ Kernel/ Form/ UserLoginFormTest.php
File
- core/
modules/ user/ src/ UserAuthInterface.php, line 8
Namespace
Drupal\userView source
interface UserAuthInterface {
/**
* Validates user authentication credentials.
*
* @param string $username
* The user name to authenticate.
* @param string $password
* A plain-text password, such as trimmed text from form values.
*
* @return int|bool
* The user's uid on success, or FALSE on failure to authenticate.
*/
public function authenticate($username, $password);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UserAuthInterface:: |
public | function | Validates user authentication credentials. | 1 |