xmlrpc.php: add User::login(...)

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@586 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 15 years ago
parent 139ebbb170
commit 485d52c4a2

@ -71,9 +71,20 @@ class UserProxy {
*/
public function changePassword($old_password, $new_password) {
$uh = new UserHandler($_SESSION['username']);
return $uh->change_pass($username, $old_password, $new_password);
return $uh->change_pass($old_password, $new_password);
}
/**
* @param string $username
* @param string $password
* @return boolean true if successful.
*/
public function login($username, $password) {
$uh = new UserHandler($_SESSION['username']);
return $uh->login($username, $password);
}
}
class VacationProxy {
/**
* @return boolean true if the vacation is removed successfully. Else false.

Loading…
Cancel
Save