fix: characters are not considered Symbols when entering a new password (#3689)

Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
NikeLaosClericus
2025-08-01 05:12:25 -04:00
committed by GitHub
parent 4b1699ab33
commit 6a819e38ed

View File

@@ -16,7 +16,7 @@ export const passwordRequirements = [
{ check: regexCheck(/[a-z]/), value: "lowercase" },
{ check: regexCheck(/[A-Z]/), value: "uppercase" },
{ check: regexCheck(/\d/), value: "number" },
{ check: regexCheck(/[$&+,:;=?@#|'<>.^*()%!-]/), value: "special" },
{ check: regexCheck(/[$&+,:;=?@#|'<>.^*()%!\-~`"_/\\[\]{}]/), value: "special" },
] satisfies {
check: (value: string) => boolean;
value: keyof TranslationObject["user"]["field"]["password"]["requirement"];