Fix ocs/person/check

This commit is contained in:
Tom Needham 2012-09-05 09:07:15 +00:00
parent 4224eb8831
commit 470b87f625
1 changed files with 5 additions and 4 deletions

View File

@ -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;