diff --git a/airtime_mvc/application/forms/Preferences.php b/airtime_mvc/application/forms/Preferences.php index e9e2edc9e..977cae355 100644 --- a/airtime_mvc/application/forms/Preferences.php +++ b/airtime_mvc/application/forms/Preferences.php @@ -15,6 +15,14 @@ class Application_Form_Preferences extends Zend_Form )); $general_pref = new Application_Form_GeneralPreferences(); + + $this->addElement('hash', 'csrf', array( + 'salt' => 'unique', + 'decorators' => array( + 'ViewHelper' + ) + )); + $this->addSubForm($general_pref, 'preferences_general'); $email_pref = new Application_Form_EmailServerPreferences(); diff --git a/airtime_mvc/application/views/scripts/form/preferences.phtml b/airtime_mvc/application/views/scripts/form/preferences.phtml index b9f2c34c0..afc324126 100644 --- a/airtime_mvc/application/views/scripts/form/preferences.phtml +++ b/airtime_mvc/application/views/scripts/form/preferences.phtml @@ -1,5 +1,5 @@