function UserAuthInterface::authenticateAccount
Validates user authentication credentials for an account.
This can be used where the account has already been located using the login credentials.
Parameters
\Drupal\Core\Session\AccountInterface $account: The account to authenticate.
string $password: A plain-text password, such as trimmed text from form values.
Return value
bool TRUE on success, FALSE on failure.
File
-
core/
modules/ user/ src/ UserAuthInterface.php, line 37
Class
- UserAuthInterface
- An interface for validating user authentication credentials.
Namespace
Drupal\userCode
public function authenticateAccount(UserInterface $account, string $password) : bool;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.