|
@ -38,7 +38,8 @@ class Login extends React.Component { |
|
|
isCustomSeedWeak: false, |
|
|
isCustomSeedWeak: false, |
|
|
}; |
|
|
}; |
|
|
this.toggleActivateCoinForm = this.toggleActivateCoinForm.bind(this); |
|
|
this.toggleActivateCoinForm = this.toggleActivateCoinForm.bind(this); |
|
|
this.updateInput = this.updateInput.bind(this); |
|
|
this.updateRegisterConfirmPassPhraseInput = this.updateRegisterConfirmPassPhraseInput.bind(this); |
|
|
|
|
|
this.updateLoginPassPhraseInput = this.updateLoginPassPhraseInput.bind(this); |
|
|
this.loginSeed = this.loginSeed.bind(this); |
|
|
this.loginSeed = this.loginSeed.bind(this); |
|
|
this.toggleSeedInputVisibility = this.toggleSeedInputVisibility.bind(this); |
|
|
this.toggleSeedInputVisibility = this.toggleSeedInputVisibility.bind(this); |
|
|
this.handleRegisterWallet = this.handleRegisterWallet.bind(this); |
|
|
this.handleRegisterWallet = this.handleRegisterWallet.bind(this); |
|
@ -151,15 +152,21 @@ class Login extends React.Component { |
|
|
Store.dispatch(toggleAddcoinModal(true, false)); |
|
|
Store.dispatch(toggleAddcoinModal(true, false)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
updateInput(e) { |
|
|
updateLoginPassPhraseInput(e) { |
|
|
this.setState({ |
|
|
this.setState({ |
|
|
[e.target.name]: e.target.value, |
|
|
[e.target.name]: e.target.value, |
|
|
isSeedConfirmError: false, |
|
|
|
|
|
isSeedBlank: this.isBlank(e.target.value), |
|
|
|
|
|
loginPassPhraseSeedType: this.getLoginPassPhraseSeedType(e.target.value) |
|
|
loginPassPhraseSeedType: this.getLoginPassPhraseSeedType(e.target.value) |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
updateRegisterConfirmPassPhraseInput(e) { |
|
|
|
|
|
this.setState({ |
|
|
|
|
|
[e.target.name]: e.target.value, |
|
|
|
|
|
isSeedConfirmError: false, |
|
|
|
|
|
isSeedBlank: this.isBlank(e.target.value) |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
updateWalletSeed(e) { |
|
|
updateWalletSeed(e) { |
|
|
this.setState({ |
|
|
this.setState({ |
|
|
randomSeed: e.target.value, |
|
|
randomSeed: e.target.value, |
|
|