Compare commits
No commits in common. "1c1acfe938ed47ce9a14dd28edd415259cb0184d" and "485c1e27c37c52cb82c0979b1514d68f0076025a" have entirely different histories.
1c1acfe938
...
485c1e27c3
1
dist/api/index.php
vendored
1
dist/api/index.php
vendored
@ -405,7 +405,6 @@ $app->post("/user/login", function (Request $request, Response $response)
|
||||
$response->getBody()->write(json_encode(array("token" => $_SESSION["token"])));
|
||||
return $response;
|
||||
}
|
||||
$response->getBody()->write(json_encode(array("error" => "Unauthorised")));
|
||||
return $response->withStatus(401);
|
||||
});
|
||||
|
||||
|
@ -405,7 +405,6 @@ $app->post("/user/login", function (Request $request, Response $response)
|
||||
$response->getBody()->write(json_encode(array("token" => $_SESSION["token"])));
|
||||
return $response;
|
||||
}
|
||||
$response->getBody()->write(json_encode(array("error" => "Unauthorised")));
|
||||
return $response->withStatus(401);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user