From 370cb611d791e9c1c9f7e87adfb48b47b2e3262b Mon Sep 17 00:00:00 2001 From: Yogesh Mahajan Date: Thu, 9 Nov 2023 13:02:19 +0530 Subject: [PATCH] Clear the password field in the config database on clear saved server password. #6934 --- web/pgadmin/browser/server_groups/servers/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/__init__.py b/web/pgadmin/browser/server_groups/servers/__init__.py index 8230c55ab5f..5feac609d3e 100644 --- a/web/pgadmin/browser/server_groups/servers/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/__init__.py @@ -2159,9 +2159,9 @@ def clear_saved_password(self, gid, sid): 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,