bugfix: save password with host in keyring

(the same way we try to recover it)
This commit is contained in:
Christian Geier 2014-09-09 14:10:37 +02:00
parent f9f1e37655
commit 753e730906

View file

@ -133,7 +133,7 @@ def get_password(username, resource, _lock=threading.Lock()):
if keyring is not None and \
click.confirm('Save this password in the keyring?',
default=False):
keyring.set_password(password_key_prefix + resource,
keyring.set_password(password_key_prefix + host,
username, password)
return password