Skip to content

Commit

Permalink
Merge pull request #635 from kbirmhrjn/master
Browse files Browse the repository at this point in the history
Add csrf
  • Loading branch information
vinkla committed Jan 8, 2016
2 parents 69a1631 + b1e66e4 commit 7a161f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/authorization-server/auth-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
```php
<h2>{{$client->getName()}}</h2>
<form method="post" action="{{route('oauth.authorize.post', $params)}}">
{{ csrf_field() }}
<input type="hidden" name="client_id" value="{{$params['client_id']}}">
<input type="hidden" name="redirect_uri" value="{{$params['redirect_uri']}}">
<input type="hidden" name="response_type" value="{{$params['response_type']}}">
Expand Down

0 comments on commit 7a161f2

Please sign in to comment.