Alejandra
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
3 deletions
-
frontend/src/utils.ts
|
@ -29,9 +29,9 @@ export const confirmPasswordRules = ( |
|
|
) => { |
|
|
) => { |
|
|
const rules: any = { |
|
|
const rules: any = { |
|
|
validate: (value: string) => { |
|
|
validate: (value: string) => { |
|
|
const password = getValues().password || getValues().new_password; |
|
|
const password = getValues().password || getValues().new_password |
|
|
return value === password ? true : "The passwords do not match"; |
|
|
return value === password ? true : "The passwords do not match" |
|
|
} |
|
|
}, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (isRequired) { |
|
|
if (isRequired) { |
|
|