diff options
Diffstat (limited to 'application/modules/user/controllers/AuthController.php')
| -rw-r--r-- | application/modules/user/controllers/AuthController.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/application/modules/user/controllers/AuthController.php b/application/modules/user/controllers/AuthController.php index bb16e94..d1596ae 100644 --- a/application/modules/user/controllers/AuthController.php +++ b/application/modules/user/controllers/AuthController.php @@ -133,6 +133,7 @@ class User_AuthController extends Zend_Controller_Action if (isset($personID)){ $this->personmapper = new Application_Model_PersonMapper(); $person = $this->personmapper->find($personID); + print_r($person); try { $this->personmapper->delete($person); }catch(Zend_Exception $e) @@ -141,10 +142,14 @@ class User_AuthController extends Zend_Controller_Action echo "Message: " . $e->getMessage() . "<br/>"; return; } - $auth->clearIdentity(); - Zend_Session::namespaceUnset('userIDs'); - Zend_Session::forgetMe(); - $this->_helper->redirector('login', 'auth'); + if($this->_request->getParam('personID')) { + $this->_helper->redirector('', 'person'); + } else { + $auth->clearIdentity(); + Zend_Session::namespaceUnset('userIDs'); + Zend_Session::forgetMe(); + $this->_helper->redirector('login', 'auth'); + } return; } } else { |
