You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I used the middleware for a time and it's works ok, an in a time to here always return error in the authentication when I try to insert another user. I return to the old status but don't work.
Hi, I used the middleware for a time and it's works ok, an in a time to here always return error in the authentication when I try to insert another user. I return to the old status but don't work.
$app->add(new Tuupola\Middleware\HttpBasicAuthentication([ "secure" => false, "users" => [ "test" => "secret", "test-2" => "secret2" ], "error" => function ($response, $arguments) { $data["status"] = "error"; $data["message"] = $arguments["message"]; return $response ->withHeader("Content-Type", "application/json") ->getBody()->write(json_encode($data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT)); } ]));
I'm using version 3 and have php 7.1. What can do the problem?
The text was updated successfully, but these errors were encountered: