Drupal 8  8.0.2
UserAuth Class Reference
Inheritance diagram for UserAuth:

Public Member Functions

 __construct (EntityManagerInterface $entity_manager, PasswordInterface $password_checker)
 
 authenticate ($username, $password)
 

Protected Attributes

 $entityManager
 
 $passwordChecker
 

Detailed Description

Validates user authentication credentials.

Constructor & Destructor Documentation

__construct ( EntityManagerInterface  $entity_manager,
PasswordInterface  $password_checker 
)

Constructs a UserAuth object.

Parameters
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager.
\Drupal\Core\Password\PasswordInterface$password_checkerThe password service.

References Drupal\entityManager().

Here is the call graph for this function:

Member Function Documentation

authenticate (   $username,
  $password 
)

{Validates user authentication credentials.

Parameters
string$usernameThe user name to authenticate.
string$passwordA plain-text password, such as trimmed text from form values.
Returns
int|bool The user's uid on success, or FALSE on failure to authenticate.
}

Implements UserAuthInterface.

References Drupal\entityManager().

Here is the call graph for this function:


The documentation for this class was generated from the following file: