Copy 404 handling to connexion.php
This commit is contained in:
parent
e34253faf8
commit
6da202fe7c
|
@ -50,7 +50,16 @@ else
|
|||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
if ($e->getCode() == 404) {
|
||||
$resp = json_encode(
|
||||
[
|
||||
"error" => "User not found",
|
||||
"message" => "$user is not in the group of authorized users."
|
||||
]
|
||||
);
|
||||
} else {
|
||||
$resp = json_encode(array("error" => "Impossible to get data", "message" => $e->getMessage()));
|
||||
}
|
||||
$authenticated = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ catch (Exception $e)
|
|||
if ($e->getCode() == 404) {
|
||||
$resp = [
|
||||
"error" => "User not found",
|
||||
"message" => "<b>$user</b> is not in the group of authorized users."
|
||||
"message" => "$user is not in the group of authorized users."
|
||||
];
|
||||
} else {
|
||||
$resp = array(
|
||||
|
|
Loading…
Reference in New Issue