File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
packages/api/src/Domain/Auth/JsonApi/V1 Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,12 @@ public function rules(): array
2727 'required ' ,
2828 'string ' ,
2929 Password::min (8 ),
30- 'confirmed ' ,
30+ ],
31+ 'password_confirmation ' => [
32+ 'required ' ,
33+ 'string ' ,
34+ Password::min (8 ),
35+ 'same:password ' ,
3136 ],
3237 ];
3338 }
@@ -47,7 +52,10 @@ public function messages(): array
4752 'password.min ' => __ ('dystore::validations.users.password.min ' ),
4853 'password.required ' => __ ('dystore::validations.users.password.required ' ),
4954 'password.string ' => __ ('dystore::validations.users.password.string ' ),
50- 'password.confirmed ' => __ ('dystore::validations.users.password.confirmed ' ),
55+ 'password_confirmation.min ' => __ ('dystore::validations.users.password.min ' ),
56+ 'password_confirmation.required ' => __ ('dystore::validations.users.password.required ' ),
57+ 'password_confirmation.string ' => __ ('dystore::validations.users.password.string ' ),
58+ 'password_confirmation.same ' => __ ('dystore::validations.users.password.confirmed ' ),
5159 ];
5260 }
5361}
You can’t perform that action at this time.
0 commit comments