improvements: update regex checks

This commit is contained in:
Scott Wilson
2025-04-22 17:57:59 -07:00
parent d61e6752d6
commit 7bd312a287
3 changed files with 5 additions and 1 deletions
@@ -14,6 +14,7 @@ export const PasswordRequirementsSchema = z
}),
allowedSymbols: z
.string()
.regex(/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/, "Invalid symbols")
.optional()
.transform((value) => value || "-_.~!*")
})