CC-3093: SoundCloud preferences do not have email or password as required fields + firefox auto-fills the password field

Mask the password instead of hiding it
This commit is contained in:
Yuchen Wang 2011-11-25 21:52:31 -05:00
parent 41eeefe427
commit 197997fee7
1 changed files with 3 additions and 2 deletions

View File

@ -77,8 +77,9 @@ class Application_Form_SoundcloudPreferences extends Zend_Form_SubForm
// which is something we don't want
'allowEmpty' => false,
'validators' => array(
new PasswordNotEmpty(array('UploadToSoundcloudOption'=>'1'))
)
new ConditionalNotEmpty(array('UploadToSoundcloudOption'=>'1'))
),
'renderPassword' => true
));
// Add the description element