summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/controllers/AuthController.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-03-17 14:03:43 +0100
committerBjörn Geiger2011-03-17 14:03:43 +0100
commita26061089a91bf3a214d6a0dba9ffad8a7006a61 (patch)
tree718ef3992621aba600e39f877f9c9068e17662ca /application/modules/dev/controllers/AuthController.php
parentClientMapper return value (diff)
downloadpbs2-a26061089a91bf3a214d6a0dba9ffad8a7006a61.tar.gz
pbs2-a26061089a91bf3a214d6a0dba9ffad8a7006a61.tar.xz
pbs2-a26061089a91bf3a214d6a0dba9ffad8a7006a61.zip
Person und Gruppen, Fehler korrigiert + Layout
Diffstat (limited to 'application/modules/dev/controllers/AuthController.php')
-rw-r--r--application/modules/dev/controllers/AuthController.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/application/modules/dev/controllers/AuthController.php b/application/modules/dev/controllers/AuthController.php
index 49640c0..8265c6e 100644
--- a/application/modules/dev/controllers/AuthController.php
+++ b/application/modules/dev/controllers/AuthController.php
@@ -13,13 +13,14 @@ class dev_AuthController extends Zend_Controller_Action
public function indexAction()
{
+ $this->_helper-> viewRenderer-> setNoRender();
$this->_helper->redirector('login', 'auth');
}
public function loginAction()
{
if (Zend_Auth::getInstance()->hasIdentity()) {
- print_a('Already logged in.');
+ $this->_redirect('/dev/');
} else {
if (!isset($_POST["login"])){
$loginForm = new dev_Form_AuthLogin();
@@ -61,7 +62,6 @@ class dev_AuthController extends Zend_Controller_Action
}
}
}
-
$this->view->loginForm = $loginForm;
}
}
@@ -101,16 +101,17 @@ class dev_AuthController extends Zend_Controller_Action
return;
}
}
-
$this->view->registerForm = $registerForm;
}
}
public function logoutAction()
{
+ $this->_helper-> viewRenderer-> setNoRender();
$auth = Zend_Auth::getInstance();
$auth->clearIdentity();
$this->_helper->redirector('login', 'auth');
+ return;
}
public function recoverpasswordAction()
@@ -141,12 +142,12 @@ class dev_AuthController extends Zend_Controller_Action
}
*/
}
-
$this->view->recoverPasswordForm = $recoverPasswordForm;
}
public function deleteAction()
{
+ $this->_helper-> viewRenderer-> setNoRender();
$result = $this->personmapper->findBy('email', Zend_Auth::getInstance()->getIdentity());
$person = $result[0];
$personID = $person["personID"];
@@ -164,6 +165,7 @@ class dev_AuthController extends Zend_Controller_Action
$auth = Zend_Auth::getInstance();
$auth->clearIdentity();
$this->_helper->redirector('login', 'auth');
+ return;
}
}
}