Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use verifyPassword instead of submitPassword when exporting priv key #9288

Merged
merged 5 commits into from
Aug 26, 2020

Conversation

tmashuang
Copy link
Contributor

@tmashuang tmashuang commented Aug 21, 2020

Fixes #9287
Fixes #9230
Which was when submitPassword is called will fully clear the keyring state

https://github.com/MetaMask/KeyringController/blob/master/index.js#L155

Also, pass hideWarning action prop so it will clear the appState.warning if a correct password is never provided on componentWillUnmount

@tmashuang tmashuang requested a review from a team as a code owner August 21, 2020 11:55
@tmashuang tmashuang requested a review from Gudahtt August 21, 2020 11:55
@tmashuang tmashuang changed the title Verify password Use verifyPassword instead of submitPassword when exporting priv key Aug 21, 2020
@metamaskbot
Copy link
Collaborator

Builds ready [5a0a9c3]
Page Load Metrics (443 ± 66 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint288638157
domContentLoaded26663444113866
load26964444313866
domInteractive26563444013866

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a couple of debug message updates needed

ui/app/store/actions.js Outdated Show resolved Hide resolved
ui/app/store/actions.js Outdated Show resolved Hide resolved
tmashuang and others added 2 commits August 26, 2020 15:56
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@metamaskbot
Copy link
Collaborator

Builds ready [d622acd]
Page Load Metrics (450 ± 70 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint279542189
domContentLoaded26867144914570
load26967345014570
domInteractive26867144914570

@tmashuang tmashuang merged commit 79d4770 into develop Aug 26, 2020
@tmashuang tmashuang deleted the verifyPassword branch August 26, 2020 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants