mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:55:56 +00:00
normalize some mismatching hook function definitions to match base Plugin class
This commit is contained in:
@@ -3,14 +3,16 @@ interface IAuthModule {
|
||||
/**
|
||||
* @param string $login
|
||||
* @param string $password
|
||||
* optional third string $service
|
||||
* @param string $service
|
||||
* @return int|false user_id
|
||||
*/
|
||||
function authenticate($login, $password); // + optional third parameter: $service
|
||||
function authenticate($login, $password, $service = '');
|
||||
|
||||
/** this is a pluginhost compatibility wrapper that invokes $this->authenticate(...$args) (Auth_Base)
|
||||
* @param mixed $args = ($login, $password, $service)
|
||||
* @param string $login
|
||||
* @param string $password
|
||||
* @param string $service
|
||||
* @return int|false user_id
|
||||
*/
|
||||
function hook_auth_user(...$args);
|
||||
function hook_auth_user($login, $password, $service = '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user