Browse Source

Merge pull request #505 from odb366/fix/onboarding-empty-pass

fix(onboarding-empty-pass): add empty password validation
renovate/lint-staged-8.x
Ben Woosley 7 years ago
committed by GitHub
parent
commit
e95a06d78d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      app/components/Onboarding/Onboarding.js

7
app/components/Onboarding/Onboarding.js

@ -127,8 +127,11 @@ const Onboarding = ({
if (newWalletPasswordProps.showCreateWalletPasswordConfirmationError) {
return
}
// if the password is less than 8 characters dont allow users to proceed
if (newWalletPasswordProps.passwordMinCharsError) {
// if the password is less than 8 characters or empty dont allow users to proceed
if (
newWalletPasswordProps.passwordMinCharsError ||
!newWalletPasswordProps.createWalletPassword
) {
return
}

Loading…
Cancel
Save