diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/bootstrap/auth.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/bootstrap/auth.php b/config/bootstrap/auth.php index acbc4d5..a82d63a 100644 --- a/config/bootstrap/auth.php +++ b/config/bootstrap/auth.php @@ -123,7 +123,10 @@ Dispatcher::applyFilter('_callable', function($self, $params, $chain) { return $ctrl; } - //Otherwise, send them to the login page + //Save the location they are going to + $value = array('controller' => $ctrl->request->controller, 'action' => $ctrl->request->action, 'args' => $ctrl->request->args); + Session::write('url', $value); + //Redirect them to the login page return function() use ($request) { return new Response(compact('request') + array('location' => '/login')); }; |