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',
'new_user_password',
array(
'required' => true,
'label' => $this->translate('Password'),
'description' => $this->translate('Enter the password to assign to the newly created account')
'required' => true,
'renderPassword' => true,
'label' => $this->translate('Password'),
'description' => $this->translate('Enter the password to assign to the newly created account')
)
);
$this->addElement(
'password',
'new_user_2ndpass',
array(
'required' => true,
'label' => $this->translate('Repeat password'),
'description' => $this->translate(
'required' => true,
'renderPassword' => true,
'label' => $this->translate('Repeat password'),
'description' => $this->translate(
'Please repeat the password given above to avoid typing errors'
),
'validators' => array(
'validators' => array(
array('identical', false, array('new_user_password'))
)
)

View File

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