summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/AuthController.php
diff options
context:
space:
mode:
authormichael pereira2011-04-04 17:12:48 +0200
committermichael pereira2011-04-04 17:12:48 +0200
commit8ceb7bad18f257127ad5790a9c0ec157d7e03f4d (patch)
treea83b3d35741914087db7eb8c169c1f5c3b0bd02a /application/modules/user/controllers/AuthController.php
parentgetRessoources bei Play werden angezeigt (diff)
downloadpbs2-8ceb7bad18f257127ad5790a9c0ec157d7e03f4d.tar.gz
pbs2-8ceb7bad18f257127ad5790a9c0ec157d7e03f4d.tar.xz
pbs2-8ceb7bad18f257127ad5790a9c0ec157d7e03f4d.zip
WICHTIG findBy Methode geändert & alles angepasst, siehe Ticket
Diffstat (limited to 'application/modules/user/controllers/AuthController.php')
-rw-r--r--application/modules/user/controllers/AuthController.php8
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();