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(
|
||||
'label' => $this->translate('New Password'),
|
||||
'required' => true,
|
||||
'validators' => $passwordPolicyObject !== null ?
|
||||
[new PasswordValidator($passwordPolicyObject)] : [],
|
||||
'validators' => [new PasswordValidator($passwordPolicyObject)]
|
||||
)
|
||||
);
|
||||
$this->addElement(
|
||||
|
@ -55,8 +55,7 @@ class UserForm extends RepositoryForm
|
||||
array(
|
||||
'required' => true,
|
||||
'label' => $this->translate('Password'),
|
||||
'validators' => $passwordPolicyObject !== null ?
|
||||
[new PasswordValidator($passwordPolicyObject)] : [],
|
||||
'validators' => [new PasswordValidator($passwordPolicyObject)]
|
||||
)
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user