Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Add password visibility toggle #916

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simison
Copy link
Member

@simison simison commented Sep 16, 2015

A simple button to allow toggling password visibility at the sign-in
form.

Because life's too short to waste time re-typing passwords.

image

image

@mleanos
Copy link
Member

mleanos commented Sep 16, 2015

LGTM

@jloveland
Copy link
Contributor

looks good. would it make sense to add this to the following?

  • modules/users/client/views/password/reset-password.client.view.html
  • modules/users/client/views/settings/change-password.client.view.html
  • modules/users/client/views/authentication/signup.client.view.html

@simison
Copy link
Member Author

simison commented Sep 16, 2015

@jloveland true, I'll add.

Then UI wise it would make sense to remove password double check when changing the password:
image
— just like it's now missing from the signup form, too. Thoughts?

@mleanos
Copy link
Member

mleanos commented Sep 16, 2015

@simison I think that's a very good point. If the visibility toggle is on the Change Password form, then there's no need to have the Verify Password field. Although, it might be fine to leave it.

Either way, I think it would be nice to have the toggle on each of the forms that have the Password input.

@simison
Copy link
Member Author

simison commented Sep 16, 2015

Added this to those other pages but didn't remove verifications.

image

@lirantal
Copy link
Member

@simison you had me at life's too short to waste them on re-typing passwords line lol

@lirantal lirantal added this to the 0.4.2 milestone Sep 16, 2015
@lirantal
Copy link
Member

@simison kudus on the screenshots, thanks for making it an example for every other PR. Keep it up.
@ilanbiala I'm ok with this

@simison
Copy link
Member Author

simison commented Sep 16, 2015

👍

@lirantal @ilanbiala do you recon it would make sense to remove double-checking passwords and should it be included at this PR, or separately? (I'd prefer small PRs)

A simple button to allow toggling password visibility at the sign-in
form.

Because life's too short to waste time re-typing passwords.
@simison
Copy link
Member Author

simison commented Sep 17, 2015

(squashed)

@codydaig
Copy link
Member

LGTM

@lirantal
Copy link
Member

I think we can leave the double passwords checking for now, unless there's some UX evidence that it should be removed.

@simison
Copy link
Member Author

simison commented Sep 18, 2015

@lirantal some food for thought:

Basically the problem that asking password twice is trying to solve, gets already solved with the visibility toggle.

@lirantal
Copy link
Member

@mleanos I scanned through it, and I'm generally ok with continuing with this change

@mleanos
Copy link
Member

mleanos commented Sep 23, 2015

@lirantal Did you tag the wrong person in your last comment? I don't think this was waiting for anything from my end.

@lirantal
Copy link
Member

my bad :)
@simison I pinged you...

@ilanbiala
Copy link
Member

@simison since this seems somewhat redundant, can you make it a directive with an option to have the toggle and add tests for the directive?

@simison
Copy link
Member Author

simison commented Sep 26, 2015

@ilanbiala I was thinking of a directive at first but since most of it is just some HTML and the markup can be very specific depending on visuals/css framework/icon framework (here it's very tight Bootstrap+Glyphicons), it didn't make sense to me. The rest is just one variable and two if-else's.

Now that you asked... maybe it would serve as an example DOM manipulating directive.

I really like small and focused modules...

@ilanbiala
Copy link
Member

@simison any update on the directive refactor?

@ilanbiala
Copy link
Member

@simison any update on this or should this be moved back?

@ilanbiala ilanbiala modified the milestones: 0.4.x, 0.4.2 Oct 18, 2015
@ilanbiala
Copy link
Member

Moved to 0.4.x so we don't hold up 0.4.2 for this unless we make progress.

@codydaig codydaig modified the milestones: 0.5.0, 0.4.x Nov 7, 2015
@rhutchison
Copy link
Contributor

@simison any luck changing this to a directive? I like the idea and I am in favor of removing the verify check.

I would prefer if the show/hide is per-input (current and new) with verify removed.

@ilanbiala ilanbiala modified the milestones: Backlog, 0.5.0 Jan 10, 2016
@ilanbiala
Copy link
Member

Moving to backlog so this doesn't hold up 0.5.0 unless @simison or someone else wants to finish up the PR.

@lirantal
Copy link
Member

lirantal commented Jul 8, 2016

@simison @mleanos would you like to see this through please?

@mleanos
Copy link
Member

mleanos commented Jul 11, 2016

@lirantal If @simison doesn't have time, I'll pick this back up.

@simison
Copy link
Member Author

simison commented Jul 11, 2016

@mleanos feel free to, I'm pretty much booked next ~month or so.

@lirantal
Copy link
Member

👍

@ilanbiala
Copy link
Member

@mleanos I'll review it and take a look, let me know which PR it's in.

@lirantal
Copy link
Member

@simison and @mleanos would you guys like to bring this PR up to date and we'll merge it in?

@lirantal
Copy link
Member

lirantal commented Sep 8, 2016

@mleanos another ping in-case you missed it in all the previous update.
If you'd like to push this in...

@mleanos
Copy link
Member

mleanos commented Sep 11, 2016

@simison @lirantal I'll work on getting this merged.

@hyperreality Is this something you'd be interested in taking over? Either way, I'll keep this at the top of my priority list, so it doesn't get lost again.

Whoever, ends up finishing the development with this can pull down @simison's branch & make changes there & then submit a new PR (which would include Mikael's commits) from your local branch by pushing to your own fork (origin). That would work.. right?

@hyperreality
Copy link
Contributor

@mleanos Personally in my project I won't be using this feature and removal of the password re-type field - it's surely less effective at ensuring that users haven't made a typo plus I haven't seen it used in many other places.

@itelo
Copy link
Contributor

itelo commented Oct 18, 2016

@mleanos Are you working in this feature?

@mleanos
Copy link
Member

mleanos commented Oct 18, 2016

@itelo No, I'm not. Feel free to submit a PR for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants