From f9eb9a32bf6233c942a6ab8887f06d87c8e21c9b Mon Sep 17 00:00:00 2001 From: Mehdi <10160868+mbiuki@users.noreply.github.com> Date: Sat, 31 Aug 2024 00:27:58 +0200 Subject: [PATCH] Update portal.properties (#29702) comment on the pw regex needs an update ### Proposed Changes * change 1 * change 2 ### Checklist - [ ] Tests - [ ] Translations - [ ] Security Implications Contemplated (add notes if applicable) ### Additional Info ** any additional useful context or info ** ### Screenshots Original | Updated :-------------------------:|:-------------------------: ** original screenshot ** | ** updated screenshot ** --------- Co-authored-by: erickgonzalez --- dotCMS/src/main/resources/portal.properties | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dotCMS/src/main/resources/portal.properties b/dotCMS/src/main/resources/portal.properties index 685dbf9a7c87..7cfbe9e3fc92 100644 --- a/dotCMS/src/main/resources/portal.properties +++ b/dotCMS/src/main/resources/portal.properties @@ -305,7 +305,14 @@ # Note that \ is replaced with \\ to work in Java. # - # This pattern ensures that passwords must have at least 6 characters and no white spaces. + # This pattern below ensures that passwords must have at least 8 characters and no white spaces. + # Only the specified characters are allowed: + # 1. Uppercase letters: A-Z + # 2. Lowercase letters: a-z + # 3. Digits: 0-9 + # 4. Special characters: ! # % + : = ? @ + # 5. No white spaces or other characters not included in the specified set. + # The entire password must consist exclusively of the allowed characters from the start (^) to the end ($) of the string. passwords.regexptoolkit.pattern=/^[!#%+1234567890:=?@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]{8,}$/ # This pattern ensures that passwords must have between 6 and 20 valid