Add support for chars -+=; in password (#301)

Fixes #297
This commit is contained in:
Jeyachandran Rathnam 2024-02-05 22:16:55 -06:00 committed by GitHub
parent b6681851f1
commit 702192420e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@hyperdx/api': patch
---
Support '-', ';', '=', and '+' in password

View file

@ -27,7 +27,7 @@ const registrationSchema = z
'Password must include at least one number',
)
.refine(
pass => /[!@#$%^&*(),.?":{}|<>]/.test(pass),
pass => /[!@#$%^&*(),.?":{}|<>;\-+=]/.test(pass),
'Password must include at least one special character',
),
confirmPassword: z.string(),