Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

add password visibilty toggle to onboarding #893

Closed
wants to merge 2 commits into from

Conversation

luclu
Copy link
Contributor

@luclu luclu commented Jun 27, 2016

closes: #554


@method showPassword
*/
'showPassword': function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

would be better to call this passwordInputType or something similar.

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 copied this helper function from popupWindows_onboardingScreen_importAccount helpers.
Would you change that one too or do I miss your argument?

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 also suggest changing that function helper name to passwordInputType

<input type="{{passwordInputType}}" placeholder="{{i18n 'mist.popupWindows.requestAccount.enterPassword'}}" class="password {{#if TemplateVar.get 'passwordsMismatch'}}dapp-error{{/if}}">
<input type="{{passwordInputType}}" placeholder="{{i18n 'mist.popupWindows.requestAccount.repeatPassword'}}" class="password-repeat {{#if TemplateVar.get 'passwordsMismatch'}}dapp-error{{/if}}">
<br><br>
<input type="checkbox" id="show-password" name="elements_input_bool" class="abi-input">
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm strongly against using ids, as with the template scope and classes we can simply avoid using those.
Please change it to a class :)

@alexvandesande
Copy link

Superseded by this: #909

@luclu luclu deleted the toggle_password_visibility branch September 30, 2016 10:14
@lock
Copy link

lock bot commented Mar 31, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked and limited conversation to collaborators Mar 31, 2018
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.

Add password visibility toggle on creation
5 participants