Better solution for upgrade problems (SAAS-1133)
This commit is contained in:
parent
9d4cc6c205
commit
885f47c20e
|
@ -187,18 +187,10 @@ class Application_Form_BillingClient extends Zend_Form
|
|||
$passwordVerify->addValidator('Identical', false, array('token' => 'password2'));
|
||||
$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(
|
||||
|
||||
$this->addElement('hash', 'csrf_client', array(
|
||||
'salt' => 'unique'
|
||||
));
|
||||
*/
|
||||
|
||||
$submit = new Zend_Form_Element_Submit("submit");
|
||||
$submit->setIgnore(true)
|
||||
|
|
|
@ -3,16 +3,9 @@ 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');
|
||||
$this->addElement($csrf_element);
|
||||
|
||||
$this->addElement('hash', 'csrf', array(
|
||||
$this->addElement('hash', 'csrf_upgrade', array( //Needs a unique ID (csrf_upgrade) so it doesn't conflict with other tokens in subforms
|
||||
'salt' => 'unique'
|
||||
));
|
||||
*/
|
||||
|
||||
$productPrices = array();
|
||||
$productTypes = array();
|
||||
|
|
|
@ -274,7 +274,7 @@ echo($currentProduct["name"]);
|
|||
<form id="<?php echo $form->getId(); ?>" method="<?php echo $form->getMethod() ?>" action="<?php echo
|
||||
$form->getAction()?>" enctype="<?php echo $form->getEncType();?>">
|
||||
|
||||
<?php echo $form->csrf ?>
|
||||
<?php echo $form->csrf_upgrade ?>
|
||||
|
||||
<div id="plantype">
|
||||
<?php echo $form->newproductid ?>
|
||||
|
@ -353,8 +353,9 @@ echo($currentProduct["name"]);
|
|||
<div id="vaterror"></div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div>
|
||||
<?php echo $billingForm->csrf_client ?>
|
||||
|
||||
<div>
|
||||
<div class="billing_checkbox">
|
||||
<?=$billingForm->getElement("71")->renderViewHelper(); ?>
|
||||
</div>
|
||||
|
@ -379,7 +380,7 @@ echo($currentProduct["name"]);
|
|||
<b>Total:</b> <span id="total"></span>
|
||||
</div>
|
||||
|
||||
<input type="submit" class="btn right-floated" value="Submit Order" id="atpro_submitorder"></input>
|
||||
<input type="submit" class="btn right-floated" value="Submit Order" id="atpro_submitorder">
|
||||
<div class="clearfix"></div>
|
||||
</form>
|
||||
</div>
|
Loading…
Reference in New Issue