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

Implement 2nd passphrase registration - Closes #68 #554

Merged
merged 40 commits into from
Mar 21, 2018

Conversation

yasharAyari
Copy link
Contributor

@yasharAyari yasharAyari commented Mar 13, 2018

What was the problem?

2nd passphrase registration component didn't Implement
this PR also covers #568 and #569

there is #564 issue for improving test coverage

Review checklist

@slaweet slaweet changed the base branch from 0.3.0 to 0.4.0 March 16, 2018 11:25
@yasharAyari yasharAyari changed the base branch from 0.4.0 to 0.3.0 March 19, 2018 10:58
@slaweet slaweet changed the base branch from 0.3.0 to 0.4.0 March 19, 2018 11:19
<h5>{t('Security')}</h5>
<p>{t('Register 2nd passphrase')}</p>
</article>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

The settings item should not be commented out until the 2nd passphrase registration is covered with tests (in #564)

backButtonLabel={t('Back')}>
<CreateSecond title='Create' t={t} icon='add' />
<Safekeeping title='Safekeeping' t={t} icon='checkmark' />
<Confirm title='Confirm' t={t} confirmButton='Register'
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be title={t('Create')} title={t('Safekeeping')} title={t('Confirm')}

onClick={() => nextStep({
passphrase: this.state.passphrase,
header: t('Your passphrase is used to access your Lisk ID.'),
message: t('I am responsible for keeping my passphrase safe. No one can reset it, not even Lisk.'),
Copy link
Contributor

Choose a reason for hiding this comment

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

});
}, 300);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Most of this logic is duplicated from
https://github.com/LiskHQ/lisk-hub/blob/fbc7d66dc9cae07b2381d3c0f10ce4b433a4edd9/src/components/passphrase/create/index.js

There should be a common component for the logic of 1st and 2nd passphrase generation, only the presentation part should be different for 1st and 2nd passphrase generation. This might be worth a separate task.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have created issue #577 to fix this problem

@yasharAyari yasharAyari merged commit e536f19 into 0.4.0 Mar 21, 2018
@yasharAyari yasharAyari deleted the 68-implement-2nd-passphrase-registration branch March 21, 2018 08:52
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.

2 participants