Skip to content

Commit 99e8457

Browse files
changes per feedback
1 parent 8453425 commit 99e8457

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/ApiBundle/Resources/config/validation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ ApiBundle\Entity\User:
3232
api_error: 'api.show_error_username_policy'
3333
- Regex:
3434
groups: [Registration, Profile]
35-
# Username should be 2-50 characters long with any Uppercase/lowercase letter (A-Za-z), number (0-9), any special character other than [ and ]
36-
pattern: '/^[a-zA-Z0-9-_!@#$%&*+=()^{};:.,\\|\/?><"']{2,50}$/'
35+
# Username should be 2-50 characters long with any Uppercase/lowercase letter (A-Za-z), number (0-9), any special character other than square brackets and quotes
36+
pattern: '/^[a-zA-Z0-9-_!@#$%&*+=()^{};:.,\\|\/?><]{2,50}$/'
3737
match: true
3838
message: "user.show_error_username_policy"
3939
payload:

src/ApiBundle/Resources/translations/validators.en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ user:
1919
show_error_perm_edit: Sorry, You are not permitted to edit user profile!
2020
show_error_password_reset: Sorry, You are not permitted to request for password reset!
2121
show_error_reset_req: Password reset request already received
22-
show_error_username_policy: Username should be 2-50 characters long with any Uppercase/lowercase letter (A-Za-z), number (0-9), any special character, other than [ and ]
22+
show_error_username_policy: Username should be 2-50 characters long with any Uppercase/lowercase letter (A-Za-z), number (0-9), any special character, other than []'"
2323
show_error_password_policy: Password 6-50 characters, at least 1 Uppercase, 1 Lowercase, 1 Number and 1 Special Character, other than [ and ]
2424
show_error_role: Sorry! Not a valid Role!

src/ApiBundle/Resources/translations/validators.fr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ user:
2020
show_error_password_reset: Désolé, vous n'êtes pas autorisé à demander une réinitialisation du mot de passe!
2121
show_error_reset_req: Réinitialisation du mot de passe déjà reçue
2222
show_error_server_fault: Erreur du serveur! Veuillez réessayer après un certain temps !!
23-
show_error_username_policy: Le nom d'utilisateur doit comporter de 2 à 50 caractères avec une lettre majuscule / minuscule (A-Za-z), un numéro (0-9), un caractère spécial, autre que [ et ]
23+
show_error_username_policy: Le nom d'utilisateur doit comporter de 2 à 50 caractères avec une lettre majuscule / minuscule (A-Za-z), un numéro (0-9), un caractère spécial, autre que []'"
2424
show_error_password_policy: Mot de passe 6-50 caractères, au moins 1 majuscule, 1 minuscule, 1 numéro et 1 caractère spécial, autres que [et]

src/ApiBundle/Resources/translations/validators.hi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ user:
2121
show_error_reset_req: पासवर्ड रीसेट अनुरोध पहले से ही प्राप्त
2222
show_error_server_fault: सर्वर त्रुटि! कुछ समय के बाद फिर से कोशिश करें !!
2323
show_error_username_policy: यूजर का नाम किसी भी अपरकेस / छोटे अक्षर (a-Za-z), संख्या (0-9), किसी भी विशेष वर्ण, [ और ] के अलावा, 2-50 अक्षर का होना चाहिए
24-
show_error_password_policy: पासवर्ड 6-50 अक्षर, कम से कम 1 अपरकेस, 1 लोअरकेस, 1 संख्या और 1 विशेष वर्ण, [ और ] के अलावा अन्य
24+
show_error_password_policy: पासवर्ड 6-50 अक्षर, कम से कम 1 अपरकेस, 1 लोअरकेस, 1 संख्या और 1 विशेष वर्ण, []'" के अलावा अन्य

0 commit comments

Comments
 (0)