Add a rule that passwords and stream keys must not contain any dashes (#4387)

This commit is contained in:
Larry Archer
2025-06-29 21:52:22 -07:00
committed by GitHub
parent 8dd051cf3e
commit 8c97360c0f
+6 -2
View File
@@ -619,9 +619,13 @@ export const PASSWORD_COMPLEXITY_RULES = [
message: '- at least one digit',
},
{
pattern: /^(?=.*?[#?!@$%^&*-])/,
pattern: /^(?=.*?[#?!@$%^&*])/,
message: '- at least one special character: !@#$%^&*',
},
{
pattern: /^[^-]+$/,
message: '- must NOT contain a dash: -',
},
];
export const REGEX_PASSWORD = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[!@#$%^&*]).{8,192}$/;
export const REGEX_PASSWORD = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[!@#$%^&*])[^-]{8,192}$/;