2012-12-27 11:14:44 +00:00
|
|
|
<?php
|
|
|
|
interface IAuthModule {
|
2021-11-14 07:48:32 +00:00
|
|
|
/**
|
|
|
|
* @param string $login
|
|
|
|
* @param string $password
|
|
|
|
* optional third string $service
|
|
|
|
* @return int|false user_id
|
|
|
|
*/
|
2019-11-01 10:03:06 +00:00
|
|
|
function authenticate($login, $password); // + optional third parameter: $service
|
2021-11-14 07:48:32 +00:00
|
|
|
|
|
|
|
/** this is a pluginhost compatibility wrapper that invokes $this->authenticate(...$args) (Auth_Base)
|
|
|
|
* @param mixed $args = ($login, $password, $service)
|
|
|
|
* @return int|false user_id
|
|
|
|
*/
|
|
|
|
function hook_auth_user(...$args);
|
2012-12-27 11:14:44 +00:00
|
|
|
}
|