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
1 changed files with 2 additions and 0 deletions

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