mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-24 18:37:52 +02:00
codereview
This commit is contained in:
parent
9092a5d335
commit
7e95078239
@ -63,8 +63,7 @@ class ChangePasswordForm extends Form
|
|||||||
array(
|
array(
|
||||||
'label' => $this->translate('New Password'),
|
'label' => $this->translate('New Password'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'validators' => $passwordPolicyObject !== null ?
|
'validators' => [new PasswordValidator($passwordPolicyObject)]
|
||||||
[new PasswordValidator($passwordPolicyObject)] : [],
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
|
@ -55,8 +55,7 @@ class UserForm extends RepositoryForm
|
|||||||
array(
|
array(
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'label' => $this->translate('Password'),
|
'label' => $this->translate('Password'),
|
||||||
'validators' => $passwordPolicyObject !== null ?
|
'validators' => [new PasswordValidator($passwordPolicyObject)]
|
||||||
[new PasswordValidator($passwordPolicyObject)] : [],
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user