Open tonytonov opened 3 years ago
Hi @kevinushey, thanks for the quick fix. May I suggest documenting this exact behavior as intended? I may easily imagine a situation, where we ask for password by not using the word "password", but using "username": "Enter secret key for username tonytonov" "Enter passphrase for user randomUsername2020" What makes it even harder to pinpoint, is the underlying Java code that handles the logic, not the R code that one can somewhat easily locate and read.
Other common synonyms include "pass", "pwd". Mixing with other languages may occur, e.g. "Введите пароль для вашего username" -- a quite likely scenario in Ru-En "IT-speak".
Thanks; you're absolutely right. What I committed is a bandaid for this particular case but I agree we should have a way of explicitly requesting input masking or not in the dialog (regardless of the prompt used).
Re-opening this issue to keep that tracked.
Hi! For a prompt containing a word "username" there is an undocumented behavior -- the absence of password masking (see image below).
My use case is calling through package
getPass
:I may remove the word "username" from the prompt, but it will still backfire if username is e.g. "my-username", making it inconsistent. It would be helpful to document such behavior and add an option to override it with an optional argument.