mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 09:36:21 +01:00
conf: Display apiurl when asking for a username or a password
This commit is contained in:
parent
cf6e33a59b
commit
5f912a8d7d
@ -987,8 +987,11 @@ def interactive_config_setup(conffile, apiurl, initial=True):
|
|||||||
raise oscerr.UserAbort()
|
raise oscerr.UserAbort()
|
||||||
print()
|
print()
|
||||||
|
|
||||||
user = raw_input('Username: ')
|
apiurl_no_scheme = urlsplit(apiurl)[1]
|
||||||
passwd = getpass.getpass()
|
user_prompt = f"Username [{apiurl_no_scheme}]: "
|
||||||
|
user = raw_input(user_prompt)
|
||||||
|
pass_prompt = f"Password [{user}@{apiurl_no_scheme}]: "
|
||||||
|
passwd = getpass.getpass(pass_prompt)
|
||||||
creds_mgr_descr = select_credentials_manager_descr()
|
creds_mgr_descr = select_credentials_manager_descr()
|
||||||
if initial:
|
if initial:
|
||||||
config = {'user': user, 'pass': passwd}
|
config = {'user': user, 'pass': passwd}
|
||||||
|
Loading…
Reference in New Issue
Block a user