Temporary workaround for upgrade problems

This commit is contained in:
Albert Santoni 2015-10-20 12:28:18 -04:00
parent c8e1408dbe
commit 9d4cc6c205
2 changed files with 10 additions and 0 deletions

View File

@ -188,9 +188,17 @@ class Application_Form_BillingClient extends Zend_Form
$passwordVerify->addValidator($notEmptyValidator); $passwordVerify->addValidator($notEmptyValidator);
$this->addElement($passwordVerify); $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( $this->addElement('hash', 'csrf', array(
'salt' => 'unique' 'salt' => 'unique'
)); ));
*/
$submit = new Zend_Form_Element_Submit("submit"); $submit = new Zend_Form_Element_Submit("submit");
$submit->setIgnore(true) $submit->setIgnore(true)

View File

@ -3,6 +3,7 @@ class Application_Form_BillingUpgradeDowngrade extends Zend_Form
{ {
public function init() public function init()
{ {
/*
$csrf_namespace = new Zend_Session_Namespace('csrf_namespace'); $csrf_namespace = new Zend_Session_Namespace('csrf_namespace');
$csrf_element = new Zend_Form_Element_Hidden('csrf'); $csrf_element = new Zend_Form_Element_Hidden('csrf');
$csrf_element->setValue($csrf_namespace->authtoken)->setRequired('true')->removeDecorator('HtmlTag')->removeDecorator('Label'); $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( $this->addElement('hash', 'csrf', array(
'salt' => 'unique' 'salt' => 'unique'
)); ));
*/
$productPrices = array(); $productPrices = array();
$productTypes = array(); $productTypes = array();