We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9092a5d commit 7e95078Copy full SHA for 7e95078
2 files changed
application/forms/Account/ChangePasswordForm.php
@@ -63,8 +63,7 @@ public function createElements(array $formData)
63
array(
64
'label' => $this->translate('New Password'),
65
'required' => true,
66
- 'validators' => $passwordPolicyObject !== null ?
67
- [new PasswordValidator($passwordPolicyObject)] : [],
+ 'validators' => [new PasswordValidator($passwordPolicyObject)]
68
)
69
);
70
$this->addElement(
application/forms/Config/User/UserForm.php
@@ -55,8 +55,7 @@ protected function createInsertElements(array $formData)
55
56
57
'label' => $this->translate('Password'),
58
59
60
61
62
0 commit comments