summaryrefslogtreecommitdiff
path: root/classes/IAuthModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/IAuthModule.php')
-rw-r--r--classes/IAuthModule.php18
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 = '');
+}