From 797b5ae4afb3e13a5d7f105a2aa74c95a9b540b5 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sat, 9 May 2026 16:20:03 +0000
Subject: [PATCH 1/2] fix: unmask server control and FTP passwords on edit page
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/96e1b41b-9f2f-4572-b7c2-49c247725f2c
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
---
modules/user_games/edit_home.php | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/user_games/edit_home.php b/modules/user_games/edit_home.php
index 458fe986..7f1f1fbb 100644
--- a/modules/user_games/edit_home.php
+++ b/modules/user_games/edit_home.php
@@ -710,12 +710,14 @@ function exec_ogp_module()
echo "";
echo "";
echo "
". get_lang("change_name_info") ."
";
+ $copy_password_js = "if(navigator.clipboard&&navigator.clipboard.writeText){navigator.clipboard.writeText(this.form[this.getAttribute('data-copy-field')].value);}else{this.form[this.getAttribute('data-copy-field')].select();document.execCommand('copy');}";
// Form to edit control password
echo "
". get_lang("game_control_password") .":
";
echo "
";
echo "
". get_lang("change_control_password_info") ."
";
@@ -754,7 +756,8 @@ function exec_ogp_module()
// Form to edit control ftp password
echo "
". get_lang("server_ftp_password") .":
";
echo "
";
echo "
". get_lang("change_ftp_password_info") ."
";
From cb9fe454e26b272462d9e913ad7d655533d5e27f Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sat, 9 May 2026 16:22:18 +0000
Subject: [PATCH 2/2] feat: show and copy control/FTP passwords in edit home UI
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/96e1b41b-9f2f-4572-b7c2-49c247725f2c
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
---
modules/user_games/edit_home.php | 41 ++++++++++++++++++++++++++++----
1 file changed, 37 insertions(+), 4 deletions(-)
diff --git a/modules/user_games/edit_home.php b/modules/user_games/edit_home.php
index 7f1f1fbb..b50b7a2d 100644
--- a/modules/user_games/edit_home.php
+++ b/modules/user_games/edit_home.php
@@ -710,14 +710,12 @@ function exec_ogp_module()
echo "";
echo "";
echo "
". get_lang("change_name_info") ."
";
- $copy_password_js = "if(navigator.clipboard&&navigator.clipboard.writeText){navigator.clipboard.writeText(this.form[this.getAttribute('data-copy-field')].value);}else{this.form[this.getAttribute('data-copy-field')].select();document.execCommand('copy');}";
-
// Form to edit control password
echo "
". get_lang("game_control_password") .":
";
echo "
";
echo "
". get_lang("change_control_password_info") ."
";
@@ -757,11 +755,46 @@ function exec_ogp_module()
echo "