Fix response status code on invalid signature

This commit is contained in:
Tobias Dierich 2018-04-02 22:02:36 +02:00 committed by GitHub
parent 0f68677bc0
commit 97c420ef28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ Alternatively, you may assign the `Illuminate\Routing\Middleware\ValidateSignatu
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
];
Once you have registered the middleware in your kernel, you may attach it to a route. If the incoming request does not have a valid signature, the middleware will automatically return a `401` error response:
Once you have registered the middleware in your kernel, you may attach it to a route. If the incoming request does not have a valid signature, the middleware will automatically return a `403` error response:
Route::post('/unsubscribe/{user}', function (Request $request) {
// ...