nextcloud/lib/ocs/person.php

21 lines
405 B
PHP
Raw Normal View History

2012-07-30 16:42:18 +04:00
<?php
class OC_OCS_Person {
public static function check($parameters){
2012-09-05 13:07:15 +04:00
$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;
2012-07-30 16:42:18 +04:00
return $xml;
}else{
return 102;
}
}else{
return 101;
}
}
2012-09-05 16:32:54 +04:00
2012-07-30 16:42:18 +04:00
}