api: a few more returns in login
This commit is contained in:
parent
10a1d4d879
commit
9e469b1642
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue