api: don't return errors on login success

This commit is contained in:
Andrew Dolgov 2021-11-18 09:01:44 +03:00
parent 63ec5a8965
commit 10a1d4d879
1 changed files with 2 additions and 0 deletions

View File

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