summaryrefslogtreecommitdiff
path: root/app/php/controls/HeaderMenu.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/controls/HeaderMenu.php')
-rw-r--r--app/php/controls/HeaderMenu.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/php/controls/HeaderMenu.php b/app/php/controls/HeaderMenu.php
index a9759da..1e74be3 100644
--- a/app/php/controls/HeaderMenu.php
+++ b/app/php/controls/HeaderMenu.php
@@ -6,6 +6,13 @@ Prado::using('System.Web.UI.ActiveControls.TActiveLinkButton');
class HeaderMenu extends TemplateControl {
+ public function loginUser($sender, $param) {
+ $this->Application->getModule('auth')->setReturnUrl($this->Request->RequestUri);
+ $this->Response->redirect(
+ $this->Service->ConstructUrl('Login')
+ );
+ }
+
public function logoutUser($sender, $param) {
$this->Application->getModule('auth')->logout();
$this->Response->redirect(