Merge pull request #3138 from bluewave-labs/fix/password-special-chars

fix: remove <> from allowed password characters and display allowed special chars
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-01-16 13:17:12 -08:00
commit 173a4e17d2
2 files changed
+4 -5

No files matched your search

+1 -2
View File
@@ -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(),