Skip to main content
added 40 characters in body
Source Link

Add the below functions to 3rd Party/Custom Module . If not implement/extend the functions properly .

/**

  • Creates new Form key */ public function renewFormKey() { $this->setData('_form_key', Mage::helper('core')->getRandomString(16)); }

/**

  • Validates Form key
  • @param string|null $formKey
  • @return bool */ public function validateFormKey($formKey) { return ($formKey === $this->getFormKey()); } }
/**
* Creates new Form key
*/
public function renewFormKey()
{
$this->setData('_form_key', Mage::helper('core')->getRandomString(16));
}

/**
* Validates Form key
*
* @param string|null $formKey
* @return bool
*/
public function validateFormKey($formKey)
{
return ($formKey === $this->getFormKey());
}
}

Thanks! [email protected] 9895382293

Add the below functions to 3rd Party/Custom Module . If not implement/extend the functions properly .

/**

  • Creates new Form key */ public function renewFormKey() { $this->setData('_form_key', Mage::helper('core')->getRandomString(16)); }

/**

  • Validates Form key
  • @param string|null $formKey
  • @return bool */ public function validateFormKey($formKey) { return ($formKey === $this->getFormKey()); } }

Thanks! [email protected] 9895382293

Add the below functions to 3rd Party/Custom Module . If not implement/extend the functions properly .

/**
* Creates new Form key
*/
public function renewFormKey()
{
$this->setData('_form_key', Mage::helper('core')->getRandomString(16));
}

/**
* Validates Form key
*
* @param string|null $formKey
* @return bool
*/
public function validateFormKey($formKey)
{
return ($formKey === $this->getFormKey());
}
}

Thanks!

Source Link

Add the below functions to 3rd Party/Custom Module . If not implement/extend the functions properly .

/**

  • Creates new Form key */ public function renewFormKey() { $this->setData('_form_key', Mage::helper('core')->getRandomString(16)); }

/**

  • Validates Form key
  • @param string|null $formKey
  • @return bool */ public function validateFormKey($formKey) { return ($formKey === $this->getFormKey()); } }

Thanks! [email protected] 9895382293