mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 00:25:18 +00:00
Updated error codes
This commit is contained in:
@ -18,7 +18,7 @@ class userController
|
||||
public function connectUSER(){
|
||||
//Check variables sent in request
|
||||
if(!isset($_POST['userMail']) OR !isset($_POST['userPassword']))
|
||||
throw new RestException(401, "Missing data !");
|
||||
throw new RestException(400, "Missing data !");
|
||||
|
||||
//Retrieve database connection
|
||||
$db = CS::get()->db;;
|
||||
|
Reference in New Issue
Block a user