Skip to content

Commit 3bfd0e9

Browse files
committed
Adding a max length validator
1 parent 584289d commit 3bfd0e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Maker/MakeRegistrationForm.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ private function generateFormClass(ClassNameDetails $userClassDetails, Generator
307307
new Length([
308308
'min' => 6,
309309
'minMessage' => 'Your password should be at least {{ limit }} characters',
310+
// max length allowed by Symfony for security reasons
311+
'max' => 4096,
310312
]),
311313
],
312314
EOF

0 commit comments

Comments
 (0)