Store redirect login url in session instead of using url parameter

This commit is contained in:
Frederic Guillot
2015-07-16 22:22:33 -04:00
parent e0d4877126
commit 493c7c2c74
6 changed files with 20 additions and 9 deletions

View File

@@ -127,7 +127,8 @@ abstract class Base extends \Core\Base
$this->response->text('Not Authorized', 401);
}
$this->response->redirect($this->helper->url->to('auth', 'login', array('redirect_query' => urlencode($this->request->getQueryString()))));
$this->session['login_redirect'] = $this->request->getUri();
$this->response->redirect($this->helper->url->to('auth', 'login'));
}
}