Fixed form (error messages too long). Consolidated tests & errors. Moved regexes to another file. Added regex to check for PII & reject pwd if true. Confirmed hashing & encryption/decryption works with top 50 languages, emojis etc (screen videos & unit tests to come).

This commit is contained in:
Joel Biddle
2023-08-25 01:44:02 +10:00
parent 688cf91eb7
commit 4d6a8f0476
14 changed files with 293 additions and 374 deletions
@@ -15,14 +15,12 @@ import { useUser } from "@app/context";
type Errors = {
tooShort?: string;
tooLong?: string;
upperCase?: string;
lowerCase?: string;
number?: string;
specialChar?: string;
noLetterChar?: string;
noNumOrSpecialChar?: string;
repeatedChar?: string;
isEmail?: string;
isUrl?: string;
isBreachedPassword?: string;
escapeChar?: string;
lowEntropy?: string;
breached?: string;
};
const schema = yup