diff options
| author | mentos | 2011-01-31 15:15:01 +0100 |
|---|---|---|
| committer | mentos | 2011-01-31 15:15:01 +0100 |
| commit | 7f58139b45f342843d7d7e9d0a2d1dfda6b6eff3 (patch) | |
| tree | 7d1f45cbf759c09079fff7b40716c129965bff96 /application/controllers/PersonController.php | |
| parent | Personen registrierung (diff) | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-7f58139b45f342843d7d7e9d0a2d1dfda6b6eff3.tar.gz pbs2-7f58139b45f342843d7d7e9d0a2d1dfda6b6eff3.tar.xz pbs2-7f58139b45f342843d7d7e9d0a2d1dfda6b6eff3.zip | |
Person Controller
Diffstat (limited to 'application/controllers/PersonController.php')
| -rw-r--r-- | application/controllers/PersonController.php | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/application/controllers/PersonController.php b/application/controllers/PersonController.php index 05177c3..65a4cca 100644 --- a/application/controllers/PersonController.php +++ b/application/controllers/PersonController.php @@ -3,23 +3,19 @@ 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 + echo 'case2'; + // action body } public function registerAction() |
