Wizard: Re-render passwords on the admin account and db creation page

That's not placeholders, actually, but this will be solved in a
different issue. (in a more generic way)

fixes #9545
This commit is contained in:
Johannes Meyer 2015-07-02 11:50:23 +02:00
parent 179a22266e
commit 2f05ca6332
2 changed files with 12 additions and 9 deletions

View File

@ -167,21 +167,23 @@ class AdminAccountPage extends Form
'password', 'password',
'new_user_password', 'new_user_password',
array( array(
'required' => true, 'required' => true,
'label' => $this->translate('Password'), 'renderPassword' => true,
'description' => $this->translate('Enter the password to assign to the newly created account') 'label' => $this->translate('Password'),
'description' => $this->translate('Enter the password to assign to the newly created account')
) )
); );
$this->addElement( $this->addElement(
'password', 'password',
'new_user_2ndpass', 'new_user_2ndpass',
array( array(
'required' => true, 'required' => true,
'label' => $this->translate('Repeat password'), 'renderPassword' => true,
'description' => $this->translate( 'label' => $this->translate('Repeat password'),
'description' => $this->translate(
'Please repeat the password given above to avoid typing errors' 'Please repeat the password given above to avoid typing errors'
), ),
'validators' => array( 'validators' => array(
array('identical', false, array('new_user_password')) array('identical', false, array('new_user_password'))
) )
) )

View File

@ -107,8 +107,9 @@ class DatabaseCreationPage extends Form
'password', 'password',
'password', 'password',
array( array(
'label' => $this->translate('Password'), 'renderPassword' => true,
'description' => $this->translate('The password for the database user defined above') 'label' => $this->translate('Password'),
'description' => $this->translate('The password for the database user defined above')
) )
); );