Clear the password field in the config database on clear saved server password. #6934

This commit is contained in:
Yogesh Mahajan 2023-11-09 13:02:19 +05:30 committed by GitHub
parent d4b57edede
commit 370cb611d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,