mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
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:
parent
179a22266e
commit
2f05ca6332
@ -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'))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -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')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user