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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
2 deletions
-
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 |
|
|
|
} |
|
|
|
|
|
|
|