summaryrefslogtreecommitdiff
path: root/classes/iauthmodule.php
blob: 39aae4cc2928937790a810d9f82c4fe9ee86c83b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
interface IAuthModule {
	/**
	 * @param string $login
	 * @param string $password
	 * optional third string $service
	 * @return int|false user_id
	 */
	function authenticate($login, $password); // + optional third parameter: $service

	/** this is a pluginhost compatibility wrapper that invokes $this->authenticate(...$args) (Auth_Base)
	 * @param mixed $args = ($login, $password, $service)
	 * @return int|false user_id
	 */
	function hook_auth_user(...$args);
}