MAPG-110 make error response more for machines
This commit is contained in:
parent
af52ac3787
commit
6a9f7eddc1
@ -17,7 +17,7 @@ class PositionController
|
||||
$mapId = (int) $parameters['mapId'];
|
||||
|
||||
if (!isset($_SESSION['state']) || $_SESSION['state']['mapId'] !== $mapId) {
|
||||
$data = ['error' => 'No valid session found!'];
|
||||
$data = ['error' => 'no_session_found'];
|
||||
return new JsonContent($data);
|
||||
}
|
||||
|
||||
@ -55,7 +55,7 @@ class PositionController
|
||||
$mapId = (int) $parameters['mapId'];
|
||||
|
||||
if (!isset($_SESSION['state']) || $_SESSION['state']['mapId'] !== $mapId) {
|
||||
$data = ['error' => 'No valid session found!'];
|
||||
$data = ['error' => 'no_session_found'];
|
||||
return new JsonContent($data);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user