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

api: a few more returns in login

This commit is contained in:
Andrew Dolgov
2021-11-18 09:04:08 +03:00
parent 10a1d4d879
commit 9e469b1642

View File

@@ -92,9 +92,11 @@ class API extends Handler {
return;
} else {
$this->_wrap(self::STATUS_ERR, array("error" => self::E_LOGIN_ERROR));
return;
}
} else {
$this->_wrap(self::STATUS_ERR, array("error" => self::E_API_DISABLED));
return;
}
}
$this->_wrap(self::STATUS_ERR, array("error" => self::E_LOGIN_ERROR));