aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ocs/person.php
blob: 23b8853533d699cd64324600c9d850a05dec7d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

class OC_OCS_Person {

	public static function check($parameters){
		$login = isset($_POST['login']) ? $_POST['login'] : false;
		$password = isset($_POST['password']) ? $_POST['password'] : false;
		if($login && $password){
			if(OC_User::checkPassword($login,$password)){
				$xml['person']['personid'] = $login;
				return $xml;
			}else{
				return 102;
			}
		}else{
			return 101;
		}
	}
	
}