summaryrefslogtreecommitdiff
path: root/classes/iauthmodule.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-18 07:32:28 +0300
committerAndrew Dolgov <[email protected]>2021-11-18 07:32:28 +0300
commit63ec5a89657bb7f9650582b96e0bb255a0889b48 (patch)
tree074b61eedd7304ba1d8d7deec01d26973ef8e6b8 /classes/iauthmodule.php
parent3a3fde1a2e0beac6d179c6449eaad726100710d7 (diff)
parent2d830c6281c19a7ee29cd379f5aedc82deef3775 (diff)
Merge branch 'wip-phpstan-level6'
Diffstat (limited to 'classes/iauthmodule.php')
-rw-r--r--classes/iauthmodule.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/classes/iauthmodule.php b/classes/iauthmodule.php
index e714cc6ca..dbf8c5587 100644
--- a/classes/iauthmodule.php
+++ b/classes/iauthmodule.php
@@ -1,5 +1,18 @@
<?php
interface IAuthModule {
- function authenticate($login, $password); // + optional third parameter: $service
- function hook_auth_user(...$args); // compatibility wrapper due to how hooks work
+ /**
+ * @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 = '');
}