mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 15:59:29 +00:00
API returns specific error code in case of invalid login tokens
This commit is contained in:
parent
b3cf5fab61
commit
f3392db596
@ -59,7 +59,7 @@ if(isset($_POST['userToken1']) AND isset($_POST['userToken2'])){
|
|||||||
));
|
));
|
||||||
|
|
||||||
if($userID < 1){
|
if($userID < 1){
|
||||||
Rest_fatal_error(401, "Please check your login tokens!");
|
Rest_fatal_error(412, "Please check your login tokens!");
|
||||||
}
|
}
|
||||||
|
|
||||||
//Else save userID
|
//Else save userID
|
||||||
|
Loading…
Reference in New Issue
Block a user