diff --git a/web/pgadmin/browser/server_groups/servers/__init__.py b/web/pgadmin/browser/server_groups/servers/__init__.py index 7236fe7d2..e1afde15b 100644 --- a/web/pgadmin/browser/server_groups/servers/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/__init__.py @@ -1144,7 +1144,7 @@ class ServerNode(PGChildNodeView): con_info_ord = OrderedDict([('host', server.host), ('port', server.port), ('dbname', db_name), - ('user', server.username)]) + ('user', manager.user)]) con_info_ord.update(con_info) display_conn_string = make_conninfo(**con_info_ord) return display_conn_string diff --git a/web/pgadmin/tools/backup/__init__.py b/web/pgadmin/tools/backup/__init__.py index 8e983b515..f14059da8 100644 --- a/web/pgadmin/tools/backup/__init__.py +++ b/web/pgadmin/tools/backup/__init__.py @@ -221,7 +221,7 @@ def _get_args_params_values(data, conn, backup_obj_type, backup_file, server, '--port', port, '--username', - server.username, + manager.user, '--no-password' ]