From 63edc63ab0c1b2ec679dde0292d5e557da8e350e Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Sat, 3 May 2025 18:00:25 +0700 Subject: [PATCH] chore: do not show the current login and password (#2969) --- main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.go b/main.go index 84ffca6e..e0b83969 100644 --- a/main.go +++ b/main.go @@ -151,9 +151,7 @@ func showSetting(show bool) { fmt.Println("get current user info failed, error info:", err) } - username := userModel.Username - userpasswd := userModel.Password - if username == "" || userpasswd == "" { + if userModel.Username == "" || userModel.Password == "" { fmt.Println("current username or password is empty") } @@ -163,8 +161,6 @@ func showSetting(show bool) { } else { fmt.Println("Panel is secure with SSL") } - fmt.Println("username:", username) - fmt.Println("password:", userpasswd) fmt.Println("port:", port) fmt.Println("webBasePath:", webBasePath) }