mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-31 11:17:24 -06:00
Clear the password field in the config database on clear saved server password. #6934
This commit is contained in:
parent
d4b57edede
commit
370cb611d7
@ -2159,9 +2159,9 @@ class ServerNode(PGChildNodeView):
|
||||
|
||||
if config.DISABLED_LOCAL_PASSWORD_STORAGE:
|
||||
if server.shared and server.user_id != current_user.id:
|
||||
setattr(shared_server, 'save_password', None)
|
||||
setattr(shared_server, 'password', None)
|
||||
else:
|
||||
setattr(server, 'save_password', None)
|
||||
setattr(server, 'password', None)
|
||||
else:
|
||||
try:
|
||||
server_name = KEY_RING_USERNAME_FORMAT.format(server.name,
|
||||
|
Loading…
Reference in New Issue
Block a user