/**
  * Ändert das Passwort für den Account
  */
 public function changepasswordAction()
 {
     $params = $this->getRequiredParams(array('newpassword'));
     $logicCredential = new DragonX_Emailaddress_Logic_Credential();
     $logicCredential->changePassword(Zend_Registry::get('recordAccount'), $params['newpassword']);
     $this->_helper->FlashMessenger('<div class="alert alert-success">Änderung des Passworts erfolgreich</div>');
     $this->_redirect('administration');
 }
 /**
  * Ändert das Passwort für den Account
  * @param string $newpassword
  * @dragonx_account_authenticate
  */
 public function changePassword($newpassword)
 {
     $logicCredential = new DragonX_Emailaddress_Logic_Credential();
     $logicCredential->changePassword(Zend_Registry::get('recordAccount'), $newpassword);
 }