/** * Setzt das Passwort für die Passwort vergessen Anfrage zurück */ public function resetAction() { try { $params = $this->getRequiredParams(array('credentialhash', 'newpassword')); $logicCredential = new DragonX_Emailaddress_Logic_Credential(); $recordAccount = $logicCredential->reset($params['credentialhash'], $params['newpassword']); } catch (Exception $exception) { $this->_helper->FlashMessenger('<div class="alert alert-error">Resetlink nicht korrekt</div>'); $this->_redirect('credential/showrequest'); } $logicSession = new DragonX_Account_Logic_Session(); $sessionNamespace = new Zend_Session_Namespace(); $sessionNamespace->sessionhash = $logicSession->loginAccount($recordAccount); $this->_helper->FlashMessenger('<div class="alert alert-success">Zurücksetzen des Passworts erfolgreich</div>'); $this->_redirect('administration'); }
/** * Setzt Passwort mit dem Passwort vergessen Hash zurück * @param string $credentialhash * @param string $newpassword */ public function resetCredential($credentialhash, $newpassword) { $logicCredential = new DragonX_Emailaddress_Logic_Credential(); $logicCredential->reset($credentialhash, $newpassword); }