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