From 1bcd3e79b2fd544e5d0a00c4143a524c181ebad7 Mon Sep 17 00:00:00 2001 From: Daniel <daniel@harvey> Date: Thu, 10 Oct 2019 11:56:47 +0200 Subject: [PATCH] ENH: input.py: More informative when asking for the password. `input.py` now tells the user name and URL before asking for the password. --- src/caosdb/connection/authentication/input.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/caosdb/connection/authentication/input.py b/src/caosdb/connection/authentication/input.py index e0b4c760..7edec7c8 100644 --- a/src/caosdb/connection/authentication/input.py +++ b/src/caosdb/connection/authentication/input.py @@ -81,7 +81,10 @@ class InputCredentialsProvider(CredentialsProvider): else: 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 def password(self): -- GitLab