Skip to content

Commit

Permalink
fix(account-recovery): password field
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed Feb 8, 2022
1 parent 5849c5a commit a137be4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export type RecoverFormType = {
mnemonic?: string
password: string
recoverPassword?: string
resetPassword?: string
resetAccountPassword?: string
step: RecoverSteps
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const SecondStep = (props: Props) => {
component={PasswordBox}
showPasswordScore
passwordScore={
has('zxcvbn', window) ? window.zxcvbn(formValues.resetPassword || '').score : 0
has('zxcvbn', window) ? window.zxcvbn(formValues.resetAccountPassword || '').score : 0
}
/>
</FormGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ class ResetAccount extends React.PureComponent<InjectedFormProps<{}, Props> & Pr
handleSubmit = (e) => {
e.preventDefault()
const { authActions, cachedEmail, formValues, language } = this.props
authActions.resetAccount({ email: cachedEmail, language, password: formValues.resetPassword })
authActions.resetAccount({
email: cachedEmail,
language,
password: formValues.resetAccountPassword
})
}

render() {
Expand Down

0 comments on commit a137be4

Please sign in to comment.