Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

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

Larry Archer56e718ae576b
diff --git a/web/utils/config-constants.tsx b/web/utils/config-constants.tsx
index 0688c635c0..2f41ae615b 100644
--- a/web/utils/config-constants.tsx
+++ b/web/utils/config-constants.tsx
@@ -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}$/;