Skip to content

Commit

Permalink
More gracefully handle TokenMismatchException errors
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Dec 13, 2013
1 parent 5ba487d commit 8806208
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/start/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,10 @@
|
*/

App::error(function(\Illuminate\Session\TokenMismatchException $exception)
{
return Redirect::route('signin')->with('error','Your login session has expired. Please try logging in again.');
});

require app_path().'/filters.php';
require app_path().'/validators.php';

0 comments on commit 8806208

Please sign in to comment.