From f25c8fd0cb067c173cd18c45c2f72c20724240cc Mon Sep 17 00:00:00 2001 From: Keith Date: Fri, 1 Nov 2019 11:16:42 +0800 Subject: [PATCH] fix(neuron-ui): remove length limitation of password, but should the alert instead --- packages/neuron-ui/src/components/WalletWizard/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/neuron-ui/src/components/WalletWizard/index.tsx b/packages/neuron-ui/src/components/WalletWizard/index.tsx index 5e313e83c3..5ef122d351 100644 --- a/packages/neuron-ui/src/components/WalletWizard/index.tsx +++ b/packages/neuron-ui/src/components/WalletWizard/index.tsx @@ -17,7 +17,7 @@ import withWizard, { WizardElementProps, WithWizardState } from 'components/with import { generateMnemonic, validateMnemonic, showErrorMessage } from 'services/remote' import { createWalletWithMnemonic, importWalletWithMnemonic } from 'states/stateProvider/actionCreators' -import { Routes, MnemonicAction, ErrorCode, MAX_WALLET_NAME_LENGTH, MAX_PASSWORD_LENGTH } from 'utils/const' +import { Routes, MnemonicAction, ErrorCode, MAX_WALLET_NAME_LENGTH } from 'utils/const' import { buttonGrommetIconStyles } from 'utils/icons' import { verifyPasswordComplexity } from 'utils/validators' import generateWalletName from 'utils/generateWalletName' @@ -51,14 +51,12 @@ const submissionInputs = [ type: 'password', hint: 'wizard.set-a-strong-password-to-protect-your-wallet', autoFocus: true, - maxLength: MAX_PASSWORD_LENGTH, }, { label: 'confirm-password', key: 'confirmPassword', type: 'password', autoFocus: false, - maxLength: MAX_PASSWORD_LENGTH, }, ]