Skip to content

Commit

Permalink
chore: Updated password validation (binary-com#14458)
Browse files Browse the repository at this point in the history
  • Loading branch information
aizad-deriv committed Apr 3, 2024
1 parent da1fc16 commit b4015de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/wallets/src/utils/password-validation.ts
Expand Up @@ -66,6 +66,7 @@ export const calculateScore = (password: string) => {
export const mt5Schema = Yup.string()
.required(passwordErrorMessage.invalidLengthMT5)
.matches(passwordRegex.isMT5LengthValid, passwordErrorMessage.invalidLengthMT5)
.matches(passwordRegex.isPasswordValid, passwordErrorMessage.missingCharacter)
.matches(passwordRegex.isMT5PasswordValid, passwordErrorMessage.missingCharacterMT5);

export const cfdSchema = Yup.string()
Expand Down

0 comments on commit b4015de

Please sign in to comment.