File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments