From 9d4cc6c205155195e5ecb495460d42880dbd15b9 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Tue, 20 Oct 2015 12:28:18 -0400 Subject: [PATCH] Temporary workaround for upgrade problems --- airtime_mvc/application/forms/BillingClient.php | 8 ++++++++ airtime_mvc/application/forms/BillingUpgradeDowngrade.php | 2 ++ 2 files changed, 10 insertions(+) diff --git a/airtime_mvc/application/forms/BillingClient.php b/airtime_mvc/application/forms/BillingClient.php index 098c004a4..6057775ba 100644 --- a/airtime_mvc/application/forms/BillingClient.php +++ b/airtime_mvc/application/forms/BillingClient.php @@ -188,9 +188,17 @@ class Application_Form_BillingClient extends Zend_Form $passwordVerify->addValidator($notEmptyValidator); $this->addElement($passwordVerify); + /* + $csrf_namespace = new Zend_Session_Namespace('csrf_namespace'); + $csrf_element = new Zend_Form_Element_Hidden('csrf'); + $csrf_element->setValue($csrf_namespace->authtoken)->setRequired('true')->removeDecorator('HtmlTag')->removeDecorator('Label'); + $this->addElement($csrf_element); + + $this->addElement('hash', 'csrf', array( 'salt' => 'unique' )); + */ $submit = new Zend_Form_Element_Submit("submit"); $submit->setIgnore(true) diff --git a/airtime_mvc/application/forms/BillingUpgradeDowngrade.php b/airtime_mvc/application/forms/BillingUpgradeDowngrade.php index 5ff4ff4de..7947ab60b 100644 --- a/airtime_mvc/application/forms/BillingUpgradeDowngrade.php +++ b/airtime_mvc/application/forms/BillingUpgradeDowngrade.php @@ -3,6 +3,7 @@ class Application_Form_BillingUpgradeDowngrade extends Zend_Form { public function init() { + /* $csrf_namespace = new Zend_Session_Namespace('csrf_namespace'); $csrf_element = new Zend_Form_Element_Hidden('csrf'); $csrf_element->setValue($csrf_namespace->authtoken)->setRequired('true')->removeDecorator('HtmlTag')->removeDecorator('Label'); @@ -11,6 +12,7 @@ class Application_Form_BillingUpgradeDowngrade extends Zend_Form $this->addElement('hash', 'csrf', array( 'salt' => 'unique' )); + */ $productPrices = array(); $productTypes = array();