Add form tokens to several forms.
This commit is contained in:
parent
5a62611b00
commit
2be4a5f9d0
5 changed files with 13 additions and 1 deletions
|
@ -10,6 +10,10 @@ class Application_Form_Login extends Zend_Form
|
|||
// Set the method for the display form to POST
|
||||
$this->setMethod('post');
|
||||
|
||||
$this->addElement('hash', 'csrf', array(
|
||||
'salt' => 'unique'
|
||||
));
|
||||
|
||||
$this->setDecorators(array(
|
||||
array('ViewScript', array('viewScript' => 'form/login.phtml'))
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue