fix: remove <> from allowed password characters and display allowed special chars
## Changes - Remove < and > from password regex pattern in joi.js (these chars are stripped by DOMPurify sanitization which caused confusing validation errors) - Update locale strings to display the list of allowed special characters in password tooltip, error messages, and PasswordPanel requirements ## Benefits - Users now see exactly which special characters are allowed when setting passwords - Eliminates confusing "password cannot be empty" errors when using < or > - Regex now accurately reflects the characters that actually work Fixes #3010
This commit is contained in:
1 parent
b5caabed20
commit
d91e87f484
2 files changed
+4
-5
No files matched your search
@@ -17,8 +17,7 @@ const roleValidatior = (role) => (value, helpers) => {
|
||||
// Auth
|
||||
//****************************************
|
||||
|
||||
const passwordPattern =
|
||||
/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!?@#$%^&*()\-_=+[\]{};:'",.<>~`|\\/])[A-Za-z0-9!?@#$%^&*()\-_=+[\]{};:'",.<>~`|\\/]+$/;
|
||||
const passwordPattern = /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!?@#$%^&*()\-_=+[\]{};:'",.~`|\\/])[A-Za-z0-9!?@#$%^&*()\-_=+[\]{};:'",.~`|\\/]+$/;
|
||||
|
||||
const loginValidation = joi.object({
|
||||
email: joi.string().email().required().lowercase(),
|
||||
|
||||
Reference in new issue
Block a user