We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a3fc8 commit c5420cfCopy full SHA for c5420cf
security.rst
@@ -1073,7 +1073,7 @@ token (or whatever you need to return) and return the JSON response:
1073
+ if (null === $user) {
1074
+ return $this->json([
1075
+ 'message' => 'missing credentials',
1076
- + ], Response::HTTP_UNAUTHENTICATED);
+ + ], Response::HTTP_UNAUTHORIZED);
1077
+ }
1078
+
1079
+ $token = ...; // somehow create an API token for $user
0 commit comments