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

Typo when typing password #12

Open
kobaltz opened this issue Dec 14, 2016 · 2 comments
Open

Typo when typing password #12

kobaltz opened this issue Dec 14, 2016 · 2 comments

Comments

@kobaltz
Copy link

kobaltz commented Dec 14, 2016

FYI, when entering my Apple ID and entering the corresponding password, the backspace key adds additional keystrokes instead of deleting the previous character. Services does gracefully fail and prompts for authentication again. However, this does appear to be untypical behavior.

@thbar
Copy link

thbar commented Aug 1, 2017

Same behaviour today.

@cmckni3
Copy link

cmckni3 commented Jun 30, 2019

I think I have a hacky solution in my fork.

I haven't opened a PR because I haven't had time to test it.


Personally, I would suggest using highline. AFAIK highline is already a project dependency. It could be something like below to replace the existing block of code in ask_password:

require 'highline'

cli = HighLine.new
pw = cli.ask(what(what) + ' ' + question + ' ') { |q| q.echo = "*" }

thoughts @andrewhavens?

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

No branches or pull requests

3 participants