Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove custom messages in favour of default ones #1517

Merged
merged 1 commit into from
Mar 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/Resources/config/validation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@
<class name="Sonata\UserBundle\Model\User">
<property name="username">
<constraint name="NotBlank">
<option name="message">username.blank</option>
<option name="groups">
<value>Registration</value>
<value>Profile</value>
</option>
</constraint>
<constraint name="Length">
<option name="min">2</option>
<option name="minMessage">username.short</option>
<option name="max">180</option>
<option name="maxMessage">username.long</option>
<option name="groups">
<value>Registration</value>
<value>Profile</value>
Expand All @@ -22,24 +19,20 @@
</property>
<property name="email">
<constraint name="NotBlank">
<option name="message">email.blank</option>
<option name="groups">
<value>Registration</value>
<value>Profile</value>
</option>
</constraint>
<constraint name="Length">
<option name="min">2</option>
<option name="minMessage">email.short</option>
<option name="max">180</option>
<option name="maxMessage">email.long</option>
<option name="groups">
<value>Registration</value>
<value>Profile</value>
</option>
</constraint>
<constraint name="Email">
<option name="message">email.invalid</option>
<option name="groups">
<value>Registration</value>
<value>Profile</value>
Expand All @@ -48,7 +41,6 @@
</property>
<property name="plainPassword">
<constraint name="NotBlank">
<option name="message">password.blank</option>
<option name="groups">
<value>Registration</value>
<value>ResetPassword</value>
Expand All @@ -58,7 +50,6 @@
<constraint name="Length">
<option name="min">2</option>
<option name="max">4096</option>
<option name="minMessage">password.short</option>
<option name="groups">
<value>Registration</value>
<value>Profile</value>
Expand Down