Skip to content
Snippets Groups Projects
Commit 1bcd3e79 authored by Daniel's avatar Daniel
Browse files

ENH: input.py: More informative when asking for the password.

`input.py` now tells the user name and URL before asking for the password.
parent ff59b991
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,10 @@ class InputCredentialsProvider(CredentialsProvider): ...@@ -81,7 +81,10 @@ class InputCredentialsProvider(CredentialsProvider):
else: else:
self._username = input("Please enter the user name: ") self._username = input("Please enter the user name: ")
self._password = getpass.getpass("Please enter the password: ") url = config["url"]
self._password = getpass.getpass(
"Please enter the password for `{}` at `{}`: ".format(
self._username, url))
@property @property
def password(self): def password(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment