Mercurial > hg > isophonics-drupal-site
view core/modules/user/src/UserAuthInterface.php @ 1:1a348b17ec81
Logo and header background
author | Chris Cannam |
---|---|
date | Thu, 30 Nov 2017 14:56:35 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?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); }