Password breach check

This commit is contained in:
Joel Biddle
2023-08-22 16:49:17 +10:00
parent fbeb210965
commit 0eb21919fb
6 changed files with 73 additions and 9 deletions
+2 -1
View File
@@ -41,6 +41,7 @@ type Errors = {
number?: string,
specialChar?: string,
repeatedChar?: string,
breachedPassword?: string
};
export default function SignupInvite() {
@@ -80,7 +81,7 @@ export default function SignupInvite() {
setLastNameError(false);
}
errorCheck = checkPassword({
errorCheck = await checkPassword({
password,
commonPasswords,
setErrors