Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Update recovery data after changing password #1113

Merged
merged 2 commits into from
Dec 10, 2014

Conversation

bartekn
Copy link
Contributor

@bartekn bartekn commented Dec 9, 2014

Fixes stellar/ix#421.

var keychainData = JSON.parse(wallet.getKeychainData());
return wallet.enableRecovery({
recoveryCode: $stateParams.recoveryCode,
secretKey: keychainData.signingKeys.secretKey
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this function is getting a little hard to read it might be a good time to organize some of this logic into helper methods.

Copy link
Contributor

Choose a reason for hiding this comment

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

I would try to avoid the extra then "pass through" by isolating the paths that need access to wallet into one block.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. I reorganized this code to be easier to read.

@deckar01
Copy link
Contributor

👍

bartekn added a commit that referenced this pull request Dec 10, 2014
Update recovery data after changing password
@bartekn bartekn merged commit addec9c into master Dec 10, 2014
@jedmccaleb jedmccaleb removed the pr label Dec 10, 2014
bartekn added a commit that referenced this pull request Jan 27, 2015
Display message to users affected by change password bug #1113
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants