api: don't return errors on login success
This commit is contained in:
parent
63ec5a8965
commit
10a1d4d879
|
@ -88,6 +88,8 @@ class API extends Handler {
|
||||||
$this->_wrap(self::STATUS_OK, array("session_id" => session_id(),
|
$this->_wrap(self::STATUS_OK, array("session_id" => session_id(),
|
||||||
"config" => $this->_get_config(),
|
"config" => $this->_get_config(),
|
||||||
"api_level" => self::API_LEVEL));
|
"api_level" => self::API_LEVEL));
|
||||||
|
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
$this->_wrap(self::STATUS_ERR, array("error" => self::E_LOGIN_ERROR));
|
$this->_wrap(self::STATUS_ERR, array("error" => self::E_LOGIN_ERROR));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue