diff options
| author | Frederic Guillot <fred@kanboard.net> | 2015-07-16 22:22:33 -0400 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2015-07-16 22:22:33 -0400 |
| commit | 493c7c2c74ffdbe3ceb422d331b73e653ec0b618 (patch) | |
| tree | baa8451934e3b1f35a525a0665b12a13cf66eccd /app/Controller/Base.php | |
| parent | e0d4877126acc1e7189e6e67e1f1ca24e1dd5f02 (diff) | |
Store redirect login url in session instead of using url parameter
Diffstat (limited to 'app/Controller/Base.php')
| -rw-r--r-- | app/Controller/Base.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php index 18187162..31eb023d 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -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')); } } |
