From: Jakob Date: Sun, 1 Dec 2019 00:11:57 +0000 (-0600) Subject: Bug fix X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=ec4427829174aa8e14a5aa4b81563ef311f46200;p=bb-sync-api.git Bug fix --- diff --git a/auth.py b/auth.py index 6374b11..e27cbd7 100644 --- a/auth.py +++ b/auth.py @@ -278,13 +278,13 @@ class CookieAuthHandler(urllib.request.HTTPCookieProcessor): # Obfuscate password to prevent accidental discovery if {'username', 'password'} <= self.storage_mgr.keys(): - username = storage_mgr['username'] - password = decode(storage_mgr['password']) + username = self.storage_mgr['username'] + password = decode(self.storage_mgr['password']) else: username = self.ui.ask_username() password = self.ui.ask_password() - storage_mgr['username'] = username - storage_mgr['password'] = encode(password) + self.storage_mgr['username'] = username + self.storage_mgr['password'] = encode(password) url = self.bb_root.host + str(self.bb_root.path) with self.parent.open(url) as resp: