summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2010-04-18 15:57:54 +0200
committerMichael Tänzer <neo@nhng.de>2010-04-18 15:57:54 +0200
commit82d437e005fa73be3ba4558c0c2e5b843d08d6af (patch)
tree4e005b0bd16b9be44c73149f5ce62c0d20209de0
parentacdc60dea4f73179c129e2cb59d9dbd13d9a9a28 (diff)
downloadcacert-mgr-82d437e005fa73be3ba4558c0c2e5b843d08d6af.tar.gz
cacert-mgr-82d437e005fa73be3ba4558c0c2e5b843d08d6af.tar.xz
cacert-mgr-82d437e005fa73be3ba4558c0c2e5b843d08d6af.zip
Don't validate things the test system doesn't also validate
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--manager/application/controllers/LoginController.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/manager/application/controllers/LoginController.php b/manager/application/controllers/LoginController.php
index c89da5c..16f5c7d 100644
--- a/manager/application/controllers/LoginController.php
+++ b/manager/application/controllers/LoginController.php
@@ -218,13 +218,10 @@ class LoginController extends Zend_Controller_Action
$al->setDefaultTranslator(I18n::getTranslate());
$al->setDisableTranslator(false);
$username = new Zend_Form_Element_Text('login_name');
- $username->addValidator(new Zend_Validate_StringLength(2,20))
- ->setRequired(true)
- ->addFilter('StringToLower')
+ $username->setRequired(true)
->setLabel(I18n::_('User Name'));
$password = new Zend_Form_Element_Password('login_password');
- $password->addValidator(new Zend_Validate_StringLength(8,20))
- ->setRequired(true)
+ $password->setRequired(true)
->setLabel(I18n::_('Password'));
$submit = new Zend_Form_Element_Submit('submit');
$submit->setLabel(I18n::_('Login'));