Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Be more tolerant of user input for auth codes #518
Be more tolerant of user input for auth codes #518
Changes from all commits
fa9f6cc
2d83998
a97dde0
f924e30
edf38aa
e29bb27
f499193
f4bf159
820cd31
5c0b8d8
3ed9089
4403b4a
2fd9e65
7665882
e54dbf2
af303dd
103dd01
e0741a2
86e4395
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
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've taken a slightly different approach, which I'd like your review on @iandunn.
Instead of treating it like a string number, or groups of two digits, I've instead increased the width between all the characters, which both makes it easier to read, and due to the increased space, "feels like" (to me) that there's less of a requirement for spaces on the input (as it's auto-spaced).
Adding a space between the chunks like this is still possible, and ends up like this:
(no user-input spaces)
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 like this better than
e.g., 123 456
. I lean towards123 456
being best, though. IMO blocks of numbers like in auth codes have two problems:Adding extra (uniform) space between each letter solves
1
, but not2
. Grouping the numbers into small blocks like123 456
solves both problems IMO.I don't feel strongly, though. I think
1 2 3 4 5 6
is an improvement on the current situation 👍🏻