Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Contributors:
* Jay Knight (jay-knight)
* fbdb
* Charbel Jacquin (charbeljc)
* Jeronimo Garcia (bechampion)
* Devadathan M B (devadathanmb)
* Charalampos Stratakis
* Laszlo Bimba (bimlas)
Expand Down
2 changes: 1 addition & 1 deletion pgcli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ def connect(self, database="", host="", user="", port="", passwd="", dsn="", **k
if self.force_passwd_prompt and not passwd:
passwd = click.prompt("Password for %s" % user, hide_input=True, show_default=False, type=str)

key = f"{user}@{host}"
key = f"{user}@{host}@{port}"

if not passwd and auth.keyring:
passwd = auth.keyring_get_password(key)
Expand Down
Loading