mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-08 15:13:10 -06:00
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:
parent
9f31ec115a
commit
a85d907351
@ -1253,6 +1253,7 @@ class ServerNode(PGChildNodeView):
|
|||||||
user = None
|
user = None
|
||||||
manager = None
|
manager = None
|
||||||
replication_type = None
|
replication_type = None
|
||||||
|
tunnel_password_saved = False
|
||||||
|
|
||||||
if 'connect_now' in data and data['connect_now']:
|
if 'connect_now' in data and data['connect_now']:
|
||||||
manager = get_driver(PG_DEFAULT_DRIVER).connection_manager(
|
manager = get_driver(PG_DEFAULT_DRIVER).connection_manager(
|
||||||
@ -1329,6 +1330,7 @@ class ServerNode(PGChildNodeView):
|
|||||||
KEY_RING_TUNNEL_FORMAT.format(server.name,
|
KEY_RING_TUNNEL_FORMAT.format(server.name,
|
||||||
server.id),
|
server.id),
|
||||||
tunnel_password)
|
tunnel_password)
|
||||||
|
tunnel_password_saved = True
|
||||||
|
|
||||||
replication_type = get_replication_type(conn,
|
replication_type = get_replication_type(conn,
|
||||||
manager.version)
|
manager.version)
|
||||||
@ -1357,7 +1359,8 @@ class ServerNode(PGChildNodeView):
|
|||||||
gss_authenticated=manager.gss_authenticated if
|
gss_authenticated=manager.gss_authenticated if
|
||||||
manager and manager.gss_authenticated else False,
|
manager and manager.gss_authenticated else False,
|
||||||
is_password_saved=bool(server.save_password),
|
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
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user