Don't validate things the test system doesn't also validate
authorMichael Tänzer <neo@nhng.de>
Sun, 18 Apr 2010 13:57:54 +0000 (15:57 +0200)
committerMichael Tänzer <neo@nhng.de>
Sun, 18 Apr 2010 13:57:54 +0000 (15:57 +0200)
Signed-off-by: Michael Tänzer <neo@nhng.de>
manager/application/controllers/LoginController.php

index c89da5c..16f5c7d 100644 (file)
@@ -218,13 +218,10 @@ class LoginController extends Zend_Controller_Action
                $al->setDefaultTranslator(I18n::getTranslate());\r
                $al->setDisableTranslator(false);\r
                $username = new Zend_Form_Element_Text('login_name');\r
-               $username->addValidator(new Zend_Validate_StringLength(2,20))\r
-                                ->setRequired(true)\r
-                                ->addFilter('StringToLower')\r
+               $username->setRequired(true)\r
                                 ->setLabel(I18n::_('User Name'));\r
                $password = new Zend_Form_Element_Password('login_password');\r
-               $password->addValidator(new Zend_Validate_StringLength(8,20))\r
-                                ->setRequired(true)\r
+               $password->setRequired(true)\r
                                 ->setLabel(I18n::_('Password'));\r
                $submit = new Zend_Form_Element_Submit('submit');\r
                $submit->setLabel(I18n::_('Login'));\r