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

Make sure the recovery phrase is emptied upon process abortion #265

Merged
merged 3 commits into from
Jul 25, 2019

Conversation

Tbaut
Copy link
Contributor

@Tbaut Tbaut commented Jul 20, 2019

Users could set a seed for the new account in AccountRecover. This seed remained in the AccountStore state upon unmount. It needed to be manually removed in case a user doesn't finish the process.

@Tbaut
Copy link
Contributor Author

Tbaut commented Jul 23, 2019

Please give it a shot, it's a small one with big impact. You could end up with an empty account in the account list if you really wished.

@hanwencheng
Copy link
Contributor

The PR LGTM, but one more thing about the workflow of recovering an account, since create a empty account will result in nothing in the storage, I think we should prevent the user enter the pin creation page with empty seed. also according to the previous discussion, related code here, basically these situation need to be prevented from further steps, probably we should create a new issue to solve this problem.

@Tbaut
Copy link
Contributor Author

Tbaut commented Jul 24, 2019

I'll separate the other small bugfix into its own PR.

@Tbaut Tbaut changed the title fix(): empty field when unmounting and prevent empty account to show up Make sure the recovery phrase is emptied upon process abortion Jul 24, 2019
@Tbaut
Copy link
Contributor Author

Tbaut commented Jul 24, 2019

On this PR is now as it should be, fixing one problem.

@Tbaut Tbaut requested a review from hanwencheng July 24, 2019 17:17
@Tbaut Tbaut merged commit 04d134f into master Jul 25, 2019
@Tbaut Tbaut deleted the tbaut-erase-phrase branch July 25, 2019 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Existing recovery account recovery on iPhone Xr
2 participants