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

Hide password instead of replacing it with a character #1783

Open
Crissal1995 opened this issue Sep 14, 2023 · 0 comments
Open

Hide password instead of replacing it with a character #1783

Crissal1995 opened this issue Sep 14, 2023 · 0 comments

Comments

@Crissal1995
Copy link

Hey there, questionary user here.

I opened this issue to hide the password that an user types when using questionary.password() (a wrapper around PromptSession(is_password=True): tmbo/questionary#321

Would be nice to specify the character to use to mask the password; right now this is *, and from a quick look it doesn't seem possible to change this behavior from an external user point of view? But correct me if I'm wrong obviously.

Line of code affected:

def __init__(self, char: str = "*") -> None:

Would be nice to select either the character to use, e.g., empty string "", or just have a switch to mask the password at all, leaving the default * in case the password is not masked.

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

1 participant