Fixed an issue where user was unable to share a newly registered server. #7111

* Fixed an issue where the clear SSH tunnel password option was disabled in desktop mode.
This commit is contained in:
Pravesh Sharma 2024-04-01 16:57:47 +05:30 committed by GitHub
parent 9f31ec115a
commit a85d907351
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1253,6 +1253,7 @@ class ServerNode(PGChildNodeView):
user = None
manager = None
replication_type = None
tunnel_password_saved = False
if 'connect_now' in data and data['connect_now']:
manager = get_driver(PG_DEFAULT_DRIVER).connection_manager(
@ -1329,6 +1330,7 @@ class ServerNode(PGChildNodeView):
KEY_RING_TUNNEL_FORMAT.format(server.name,
server.id),
tunnel_password)
tunnel_password_saved = True
replication_type = get_replication_type(conn,
manager.version)
@ -1357,7 +1359,8 @@ class ServerNode(PGChildNodeView):
gss_authenticated=manager.gss_authenticated if
manager and manager.gss_authenticated else False,
is_password_saved=bool(server.save_password),
is_tunnel_password_saved=bool(server.tunnel_password)
is_tunnel_password_saved=tunnel_password_saved,
user_id=server.user_id
)
)