1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 03:15:56 +00:00

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

View File

@@ -88,6 +88,8 @@ class API extends Handler {
$this->_wrap(self::STATUS_OK, array("session_id" => session_id(),
"config" => $this->_get_config(),
"api_level" => self::API_LEVEL));
return;
} else {
$this->_wrap(self::STATUS_ERR, array("error" => self::E_LOGIN_ERROR));
}