Add form tokens to several forms.

This commit is contained in:
Robert Elder 2014-09-30 23:09:27 +00:00
parent 5a62611b00
commit 2be4a5f9d0
5 changed files with 13 additions and 1 deletions

View file

@ -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'))
));