summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2010-04-18 16:47:57 +0200
committerMichael Tänzer <neo@nhng.de>2010-04-18 16:47:57 +0200
commitb6598b4f74bf1236b24764a16e321c3dbf7d5c69 (patch)
tree006c203ffc65b7eb9ff3fe2dd12307a1eb0bf439
parent82d437e005fa73be3ba4558c0c2e5b843d08d6af (diff)
downloadcacert-mgr-b6598b4f74bf1236b24764a16e321c3dbf7d5c69.tar.gz
cacert-mgr-b6598b4f74bf1236b24764a16e321c3dbf7d5c69.tar.xz
cacert-mgr-b6598b4f74bf1236b24764a16e321c3dbf7d5c69.zip
Add filters as in the test system
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--manager/application/controllers/LoginController.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/manager/application/controllers/LoginController.php b/manager/application/controllers/LoginController.php
index 16f5c7d..08a9519 100644
--- a/manager/application/controllers/LoginController.php
+++ b/manager/application/controllers/LoginController.php
@@ -219,10 +219,13 @@ class LoginController extends Zend_Controller_Action
$al->setDisableTranslator(false);
$username = new Zend_Form_Element_Text('login_name');
$username->setRequired(true)
- ->setLabel(I18n::_('User Name'));
+ ->setLabel(I18n::_('User Name'))
+ ->addFilter(new Zend_Filter_StringTrim())
+ ->addFilter(new Zend_Filter_StripTags());
$password = new Zend_Form_Element_Password('login_password');
$password->setRequired(true)
- ->setLabel(I18n::_('Password'));
+ ->setLabel(I18n::_('Password'))
+ ->addFilter(new Zend_Filter_StringTrim());
$submit = new Zend_Form_Element_Submit('submit');
$submit->setLabel(I18n::_('Login'));
$form->addElement($username)