Skip to content

Commit 7e95078

Browse files
committed
codereview
1 parent 9092a5d commit 7e95078

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

application/forms/Account/ChangePasswordForm.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ public function createElements(array $formData)
6363
array(
6464
'label' => $this->translate('New Password'),
6565
'required' => true,
66-
'validators' => $passwordPolicyObject !== null ?
67-
[new PasswordValidator($passwordPolicyObject)] : [],
66+
'validators' => [new PasswordValidator($passwordPolicyObject)]
6867
)
6968
);
7069
$this->addElement(

application/forms/Config/User/UserForm.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ protected function createInsertElements(array $formData)
5555
array(
5656
'required' => true,
5757
'label' => $this->translate('Password'),
58-
'validators' => $passwordPolicyObject !== null ?
59-
[new PasswordValidator($passwordPolicyObject)] : [],
58+
'validators' => [new PasswordValidator($passwordPolicyObject)]
6059
)
6160
);
6261

0 commit comments

Comments
 (0)