Mercurial > hg > isophonics-drupal-site
diff core/modules/user/src/UserAuthInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/user/src/UserAuthInterface.php Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,22 @@ +<?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); + +}