diff options
author | emkael <emkael@tlen.pl> | 2016-05-07 13:24:35 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-09 12:35:55 +0200 |
commit | 640538e18581fb260997b0e84f131eda2b67c98f (patch) | |
tree | b6010d3f3a06b794511d6103e874f4460b764e39 /app/php/controls/HeaderMenu.php | |
parent | e2094c00b4691dcc78b4db8e94a020acdabb1057 (diff) |
* better handling of login redirects
Diffstat (limited to 'app/php/controls/HeaderMenu.php')
-rw-r--r-- | app/php/controls/HeaderMenu.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/php/controls/HeaderMenu.php b/app/php/controls/HeaderMenu.php index 1e74be3..2488629 100644 --- a/app/php/controls/HeaderMenu.php +++ b/app/php/controls/HeaderMenu.php @@ -7,9 +7,10 @@ Prado::using('System.Web.UI.ActiveControls.TActiveLinkButton'); class HeaderMenu extends TemplateControl { public function loginUser($sender, $param) { - $this->Application->getModule('auth')->setReturnUrl($this->Request->RequestUri); + $authModule = $this->Application->getModule('auth'); + $authModule->setReturnUrl($this->Request->RequestUri); $this->Response->redirect( - $this->Service->ConstructUrl('Login') + $this->Service->ConstructUrl($authModule->LoginPage) ); } |