mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-28 01:41:13 -06:00
Ensure user is not prompted for password if server password is saved and server configuration has invalid pgpass file parameter. #6934
This commit is contained in:
parent
361ae458d4
commit
e66cb54a58
@ -36,7 +36,7 @@ from pgadmin.utils.preferences import Preferences
|
||||
from pgadmin.utils.constants import KEY_RING_SERVICE_NAME, \
|
||||
KEY_RING_USERNAME_FORMAT, KEY_RING_TUNNEL_FORMAT, KEY_RING_DESKTOP_USER
|
||||
from .... import socketio as sio
|
||||
|
||||
from pgadmin.utils import get_complete_file_path
|
||||
import keyring
|
||||
|
||||
|
||||
@ -1543,7 +1543,8 @@ class ServerNode(PGChildNodeView):
|
||||
server.passexec_cmd is None and \
|
||||
server.service is None:
|
||||
prompt_password = True
|
||||
elif passfile_param and passfile_param != '':
|
||||
elif passfile_param and passfile_param != '' and \
|
||||
get_complete_file_path(passfile_param):
|
||||
passfile = passfile_param
|
||||
else:
|
||||
if config.DISABLED_LOCAL_PASSWORD_STORAGE:
|
||||
|
Loading…
Reference in New Issue
Block a user