Fix ocs/person/check
This commit is contained in:
parent
4224eb8831
commit
470b87f625
|
@ -3,10 +3,11 @@
|
|||
class OC_OCS_Person {
|
||||
|
||||
public static function check($parameters){
|
||||
|
||||
if($parameters['login']<>''){
|
||||
if(OC_User::login($parameters['login'],$parameters['password'])){
|
||||
$xml['person']['personid'] = $parameters['login'];
|
||||
$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;
|
||||
|
|
Loading…
Reference in New Issue