summaryrefslogtreecommitdiff
path: root/manager/application/controllers/LoginController.php
diff options
context:
space:
mode:
Diffstat (limited to 'manager/application/controllers/LoginController.php')
-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'));