From 8ceb7bad18f257127ad5790a9c0ec157d7e03f4d Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 4 Apr 2011 17:12:48 +0200 Subject: WICHTIG findBy Methode geƤndert & alles angepasst, siehe Ticket --- application/modules/user/controllers/AuthController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'application/modules/user/controllers/AuthController.php') diff --git a/application/modules/user/controllers/AuthController.php b/application/modules/user/controllers/AuthController.php index 5d63b20..7eccc98 100644 --- a/application/modules/user/controllers/AuthController.php +++ b/application/modules/user/controllers/AuthController.php @@ -51,7 +51,7 @@ class User_AuthController extends Zend_Controller_Action if ($result->isValid()) { $this->personmapper = new Application_Model_PersonMapper(); - $result = $this->personmapper->findBy('email', Zend_Auth::getInstance()->getIdentity()); + $result = $this->personmapper->findBy(array('email' => Zend_Auth::getInstance()->getIdentity()),true); $person = new Application_Model_Person($result[0]); $person->setID($result[0]['personID']); $date = new DateTime(); @@ -122,7 +122,7 @@ class User_AuthController extends Zend_Controller_Action { if($_POST['confirmdelete']) { $auth = Zend_Auth::getInstance(); - $result = $this->personmapper->findBy('email', $auth->getIdentity()); + $result = $this->personmapper->findBy(array('email' => $auth->getIdentity()),true); $person = $result[0]; $personID = $person["personID"]; if (isset($personID)){ @@ -175,7 +175,7 @@ class User_AuthController extends Zend_Controller_Action } else if(isset($_GET['recoveryid'])) { $recoveryid = $_GET['recoveryid']; $passwordRecoveryMapper = new Application_Model_PasswordRecoveryMapper(); - $passwordRecovery = $passwordRecoveryMapper->findBy("recoveryID", $recoveryid); + $passwordRecovery = $passwordRecoveryMapper->findBy(array("recoveryID" => $recoveryid),true); if(count($passwordRecovery) > 0) { $passwordRecoveryObject = new Application_Model_PasswordRecovery(); $passwordRecoveryObject->setID($passwordRecovery[0]['personID']); @@ -202,7 +202,7 @@ class User_AuthController extends Zend_Controller_Action if ($recoverPasswordForm->isValid($_POST)) { $recoverPasswordForm->getView()->url(); $this->personmapper = new Application_Model_PersonMapper(); - $result = $this->personmapper->findBy('email', $_POST['email']); + $result = $this->personmapper->findBy(array('email' => $_POST['email']),true); $person = new Application_Model_Person($result[0]); $person->setID($result[0]['personID']); $email = $person->getEmail(); -- cgit v1.2.3-55-g7522