From 753e7309069f946ee6ca54543f64231713c454fd Mon Sep 17 00:00:00 2001 From: Christian Geier Date: Tue, 9 Sep 2014 14:10:37 +0200 Subject: [PATCH] bugfix: save password with host in keyring (the same way we try to recover it) --- vdirsyncer/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vdirsyncer/utils/__init__.py b/vdirsyncer/utils/__init__.py index 09a2391..0dd09cb 100644 --- a/vdirsyncer/utils/__init__.py +++ b/vdirsyncer/utils/__init__.py @@ -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