chore: do not show the current login and password (#2969)
Some checks failed
Build and Release 3X-UI / build (386) (push) Has been cancelled
Build and Release 3X-UI / build (amd64) (push) Has been cancelled
Build and Release 3X-UI / build (arm64) (push) Has been cancelled
Build and Release 3X-UI / build (armv5) (push) Has been cancelled
Build and Release 3X-UI / build (armv6) (push) Has been cancelled
Build and Release 3X-UI / build (armv7) (push) Has been cancelled
Build and Release 3X-UI / build (s390x) (push) Has been cancelled

This commit is contained in:
Shishkevich D. 2025-05-03 18:00:25 +07:00 committed by GitHub
parent 85cbad3ef4
commit 63edc63ab0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}