Skip to content

Commit 555fafc

Browse files
author
Andrei
committed
identity references removed from input filters
1 parent 810fa47 commit 555fafc

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

src/Admin/src/Form/InputFilter/UpdateAdminInputFilter.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,6 @@ public function getInputFilter(): InputFilterInterface
5959
$this->inputFilter->add([
6060
'name' => 'uuid',
6161
'required' => false
62-
])->add([
63-
'name' => 'identity',
64-
'required' => false,
65-
'filters' => [
66-
['name' => StringTrim::class],
67-
['name' => StripTags::class]
68-
],
69-
'validators' => [
70-
[
71-
'name' => NotEmpty::class,
72-
'break_chain_on_failure' => true,
73-
'options' => [
74-
'message' => Message::VALIDATOR_SKIP_OR_FILL
75-
]
76-
]
77-
]
7862
])->add([
7963
'name' => 'password',
8064
'required' => false,

src/User/src/Form/InputFilter/UpdateAccountInputFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function getInputFilter(): InputFilterInterface
2323
{
2424
if (empty($this->inputFilter)) {
2525
$this->inputFilter = (new UpdateUserInputFilter())->getInputFilter();
26-
$this->inputFilter->setValidationGroup(['identity', 'password', 'passwordConfirm', 'detail']);
26+
$this->inputFilter->setValidationGroup(['password', 'passwordConfirm', 'detail']);
2727
}
2828

2929
return $this->inputFilter;

src/User/src/Form/InputFilter/UpdateUserInputFilter.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,6 @@ public function getInputFilter(): InputFilterInterface
6161
$this->inputFilter->add([
6262
'name' => 'uuid',
6363
'required' => false
64-
])->add([
65-
'name' => 'identity',
66-
'required' => false,
67-
'filters' => [
68-
['name' => StringTrim::class],
69-
['name' => StripTags::class]
70-
]
7164
])->add([
7265
'name' => 'password',
7366
'required' => false,

0 commit comments

Comments
 (0)