API returns specific error code in case of invalid login tokens

This commit is contained in:
Pierre 2018-05-20 14:58:35 +02:00
parent b3cf5fab61
commit f3392db596

View File

@ -59,7 +59,7 @@ if(isset($_POST['userToken1']) AND isset($_POST['userToken2'])){
));
if($userID < 1){
Rest_fatal_error(401, "Please check your login tokens!");
Rest_fatal_error(412, "Please check your login tokens!");
}
//Else save userID