Skip to content

Commit

Permalink
Fix check.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 10, 2014
1 parent 4d0de14 commit e5e7af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/CsrfMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function handle($request, Closure $next)
*/
protected function tokensMatch($request)
{
return $request->session()->token() != $request->input('_token');
return $request->session()->token() == $request->input('_token');
}

}

0 comments on commit e5e7af8

Please sign in to comment.