Don't validate things the test system doesn't also validate

Signed-off-by: Michael Tänzer <neo@nhng.de>
This commit is contained in:
Michael Tänzer 2010-04-18 15:57:54 +02:00
parent acdc60dea4
commit 82d437e005

View file

@ -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'));