Commits

Jason R. Coombs committed 9b55e7d

using the realm is more appropriate for the server field

Comments (0)

Files changed (1)

 
     def find_user_password(self, realm, authuri):
         user = self.get_username(realm, authuri)
-        passwd = keyring.get_password(authuri, user)
+        passwd = keyring.get_password(realm, user)
         if passwd is None:
             prompt = 'password for %(user)s@%(realm)s for '\
                 '%(authuri)s: ' % vars()
             passwd = getpass.getpass(prompt)
-            keyring.set_password(authuri, user, passwd)
+            keyring.set_password(realm, user, passwd)
         return user, passwd
-