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:
parent
acdc60dea4
commit
82d437e005
1 changed files with 2 additions and 5 deletions
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue