Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maskable password strength meter during setup
- Loading branch information
Showing
2 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2846140
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t think it makes sense to have the strength-meter display for the
setup_mysql_pass
(step 2 of set up). You’re not creating a password at this step, but inputting some required data from an outside source (the password needed to access the DB).2846140
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking the same thing. Stef can you revert that part of the commit?
2846140
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. The only reason I added it was:
password
aren't saved in the browser's auto-complete system, thus reducing the likelihood of seeing your MySQL password popping up when you type the first character in another field somewhere.But if these aren't strong enough reasons to keep it then we can just remove the
txp-maskable
class and revert it to a standardtype="text"
and all the extra fluff goes away.2846140
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
input type=password
is fine (and you can add that script thingie to unmask it), it is the strength-meter that makes no sense.(and fwiw I never had my browser(s) auto-complete text like you describe, is that a Google thing?)
2846140
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, good point. Unfortunately both show_password and the strength meter are tied to the same class:
txp-maskable
so they come as a pair. I'll need to either introduce a new class specifically for the strength meter or just drop the strength meter container in this case (which still leaves the event handler in play: probably less desirable). Leave it with me.