19 lines
490 B
PHP
19 lines
490 B
PHP
<?php
|
|
interface IAuthModule {
|
|
/**
|
|
* @param string $login
|
|
* @param string $password
|
|
* @param string $service
|
|
* @return int|false user_id
|
|
*/
|
|
function authenticate($login, $password, $service = '');
|
|
|
|
/** this is a pluginhost compatibility wrapper that invokes $this->authenticate(...$args) (Auth_Base)
|
|
* @param string $login
|
|
* @param string $password
|
|
* @param string $service
|
|
* @return int|false user_id
|
|
*/
|
|
function hook_auth_user($login, $password, $service = '');
|
|
}
|