This repository has been archived on 2025-09-29. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/web/core/modules/user/src/UserAuthInterface.php
2017-02-13 15:31:17 +00:00

22 lines
514 B
PHP

<?php
namespace Drupal\user;
/**
* An interface for validating user authentication credentials.
*/
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);
}