Ensure pgadmin does not try to connect to the server if saved password is not available. #7679

pull/7701/head
Yogesh Mahajan 2024-07-16 17:46:40 +05:30 committed by GitHub
parent 30051f3257
commit e028ebc152
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1616,6 +1616,7 @@ class ServerNode(PGChildNodeView):
KEY_RING_SERVICE_NAME,
KEY_RING_USERNAME_FORMAT.format(server.name,
server.id))
prompt_password = True if password is None else False
else:
password = data['password'] if 'password' in data else None
save_password = data['save_password']\