summaryrefslogtreecommitdiff
path: root/classes/IAuthModule.php
blob: dbf8c558784ced0e8c0e8e21635161555827d104 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 = '');
}