Fix CSRF token bug.
This commit is contained in:
parent
2a14998be9
commit
6f92ee8efd
|
@ -57,7 +57,7 @@
|
|||
|
||||
Route::filter('csrf', function()
|
||||
{
|
||||
if (Session::getToken() != Input::get('csrf_token'))
|
||||
if (Session::getToken() != Input::get('_token'))
|
||||
{
|
||||
throw new Illuminate\Session\TokenMismatchException;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue