fix: address PR review feedback on password suggestions
Remove redundant tests, rename requirement translations to suggestion for clearer i18n, simplify password input state and requirement display.
This commit is contained in:
41 files changed
+50
-94
No files matched your search
@@ -19,7 +19,7 @@ export const passwordRequirements = [
|
||||
{ check: regexCheck(/[$&+,:;=?@#|'<>.^*()%!\-~`"_/\\[\]{}]/), value: "special" },
|
||||
] satisfies {
|
||||
check: (value: string) => boolean;
|
||||
value: keyof TranslationObject["user"]["field"]["password"]["requirement"];
|
||||
value: keyof TranslationObject["user"]["field"]["password"]["suggestion"];
|
||||
}[];
|
||||
|
||||
export const userPasswordSchema = z.string().min(8).max(255);
|
||||
|
||||
Reference in new issue
Block a user