summaryrefslogtreecommitdiff
path: root/classes/iauthmodule.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-14 11:11:49 +0300
committerAndrew Dolgov <[email protected]>2021-11-14 11:11:49 +0300
commit0a2dcacbcf01e1ebb225570fb99811c4215c6ea9 (patch)
tree8ffae105e37718ecbd8a0de723ee95b68fb893c7 /classes/iauthmodule.php
parent81a10f69bcc38b62aad79f9be716adcf4ed49d2d (diff)
normalize some mismatching hook function definitions to match base Plugin class
Diffstat (limited to 'classes/iauthmodule.php')
-rw-r--r--classes/iauthmodule.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/classes/iauthmodule.php b/classes/iauthmodule.php
index 39aae4cc2..dbf8c5587 100644
--- a/classes/iauthmodule.php
+++ b/classes/iauthmodule.php
@@ -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 = '');
}