summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/ipxe/controllers')
-rw-r--r--application/modules/ipxe/controllers/AuthController.php1
-rw-r--r--application/modules/ipxe/controllers/ResourceController.php7
2 files changed, 8 insertions, 0 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php
index 1fdaead..eedee1f 100644
--- a/application/modules/ipxe/controllers/AuthController.php
+++ b/application/modules/ipxe/controllers/AuthController.php
@@ -105,6 +105,7 @@ class Ipxe_AuthController extends Zend_Controller_Action
$result .= "login\n";
$result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/vesamenu.c32 http://\${username:uristring}:\${password:uristring}@".$_SERVER['HTTP_HOST']."/ipxe/auth/login/alpha/".$alpha."\n";
header("Content-Length: ".(strlen($result)));
+ echo $result;
exit;
}
diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php
index 44e45b2..b853c24 100644
--- a/application/modules/ipxe/controllers/ResourceController.php
+++ b/application/modules/ipxe/controllers/ResourceController.php
@@ -76,6 +76,13 @@ class Ipxe_ResourceController extends Zend_Controller_Action
$vesamenuView->loggedin = false;
}
+ if($this->session->getMembershipID() != null){
+ $groupMapper = new Application_Model_GroupMapper();
+ $membershipMapper = new Application_Model_MembershipMapper();
+ $membership = $membershipMapper->find($this->session->getMembershipID());
+ $vesamenuView->group = $groupMapper->find($membership->getGroupID())->getTitle();
+ }
+
if ($this->session->getPersonID() != null && $this->session->getMembershipID() == null ){
$groupMapper = new Application_Model_GroupMapper();
$roleMapper = new Application_Model_RoleMapper();