summaryrefslogtreecommitdiffstats
path: root/application/controllers/PersonController.php
diff options
context:
space:
mode:
authorSimon2011-01-31 15:09:44 +0100
committerSimon2011-01-31 15:09:44 +0100
commit8e1302857fb4350bb68a7b334a183ba68c59e91c (patch)
treefc5bf3e8c958fb8c90e48182e57d10942db0d645 /application/controllers/PersonController.php
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-8e1302857fb4350bb68a7b334a183ba68c59e91c.tar.gz
pbs2-8e1302857fb4350bb68a7b334a183ba68c59e91c.tar.xz
pbs2-8e1302857fb4350bb68a7b334a183ba68c59e91c.zip
Login funktioniert
Diffstat (limited to 'application/controllers/PersonController.php')
-rw-r--r--application/controllers/PersonController.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/application/controllers/PersonController.php b/application/controllers/PersonController.php
index 9a8aea2..a0b2faf 100644
--- a/application/controllers/PersonController.php
+++ b/application/controllers/PersonController.php
@@ -3,20 +3,17 @@
class PersonController extends Zend_Controller_Action
{
- public function init()
+ public function preDispatch()
{
-
+ if (!Zend_Auth::getInstance()->hasIdentity()) {
+ // TODO: quick hack fixxen
+ $this->_redirect('/Auth/login');
+ }
}
public function indexAction()
{
- if (!Zend_Auth::getInstance()->hasIdentity()) {
- echo 'case1';
-
-
- echo "already logged in as: " . Zend_Auth::getInstance()->getIdentity();
- #$this->_redirect($this->url(array('Auth','login')));
- }
+
echo 'case2';
// action body
}