mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 03:31:27 +00:00
Password breach check
This commit is contained in:
+3
-2
@@ -25,6 +25,7 @@ type Errors = {
|
||||
number?: string,
|
||||
specialChar?: string,
|
||||
repeatedChar?: string,
|
||||
breachedPassword?: string
|
||||
};
|
||||
|
||||
const schema = yup.object({
|
||||
@@ -53,8 +54,8 @@ export const ChangePasswordSection = () => {
|
||||
try {
|
||||
if (!user?.email) return;
|
||||
if (!commonPasswords) return;
|
||||
|
||||
const errorCheck = checkPassword({
|
||||
|
||||
const errorCheck = await checkPassword({
|
||||
password: newPassword,
|
||||
commonPasswords,
|
||||
setErrors
|
||||
|
||||
@@ -42,6 +42,7 @@ type Errors = {
|
||||
number?: string,
|
||||
specialChar?: string,
|
||||
repeatedChar?: string,
|
||||
breachedPassword?: string
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -99,7 +100,7 @@ export const UserInfoSSOStep = ({
|
||||
setOrganizationNameError(false);
|
||||
}
|
||||
|
||||
errorCheck = checkPassword({
|
||||
errorCheck = await checkPassword({
|
||||
password,
|
||||
commonPasswords,
|
||||
setErrors
|
||||
|
||||
Reference in New Issue
Block a user