diff options
Diffstat (limited to 'application/modules/user/controllers/AuthController.php')
| -rw-r--r-- | application/modules/user/controllers/AuthController.php | 8 |
1 files changed, 4 insertions, 4 deletions
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(); |
