Skip to content

Commit

Permalink
Bug fixed in csrf middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaratug committed Feb 13, 2018
1 parent 9abd1d7 commit 192e593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App/Middlewares/Csrf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Csrf
public function handle()
{
if (Session::has('titan_token')) {
if (input('csrf_token') == Session::get('titan_token')) {
if (request('csrf_token') == Session::get('titan_token')) {
Session::delete('titan_token');
return true;
} else {
Expand Down

0 comments on commit 192e593

Please sign in to comment.