Skip to content

Commit

Permalink
Updated comment to match new behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Oct 26, 2024
1 parent 562c69f commit 2f3f4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyring/backends/Windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def get_credential(self, service, username):
# get the credentials associated with the provided username
if username:
res = self._get_password(self._compound_name(username, service))
# get any first password under the service name
# get a credential matching service and username if provided
if not res:
cred = self._get_password(service)
res = cred if username is None or username == cred["UserName"] else None
Expand Down

0 comments on commit 2f3f4ec

Please sign in to comment.