Skip to content

Commit c5420cf

Browse files
authored
Fix Response HTTP constant
1 parent 31a3fc8 commit c5420cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ token (or whatever you need to return) and return the JSON response:
10731073
+ if (null === $user) {
10741074
+ return $this->json([
10751075
+ 'message' => 'missing credentials',
1076-
+ ], Response::HTTP_UNAUTHENTICATED);
1076+
+ ], Response::HTTP_UNAUTHORIZED);
10771077
+ }
10781078
+
10791079
+ $token = ...; // somehow create an API token for $user

0 commit comments

Comments
 (0)