diff options
author | Andrew Dolgov <[email protected]> | 2023-10-25 12:55:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-25 12:55:09 +0300 |
commit | 865ecc87963dc3b26e66296616eef2a1cc41ac3f (patch) | |
tree | bf2ecd8a391103bdb2c8b70cd33c47467310754b /classes/IAuthModule.php | |
parent | 0a5507d3bd79d04c860455664f919bf8e7274fda (diff) |
move to psr-4 autoloader
Diffstat (limited to 'classes/IAuthModule.php')
-rw-r--r-- | classes/IAuthModule.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/classes/IAuthModule.php b/classes/IAuthModule.php new file mode 100644 index 000000000..dbf8c5587 --- /dev/null +++ b/classes/IAuthModule.php @@ -0,0 +1,18 @@ +<?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 = ''); +} |