mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-12 05:00:05 +00:00
chore: do not show the current login and password
this may cause leakage and unauthorized access to the panel
This commit is contained in:
parent
85cbad3ef4
commit
f64814716a
1 changed files with 1 additions and 5 deletions
6
main.go
6
main.go
|
@ -151,9 +151,7 @@ func showSetting(show bool) {
|
||||||
fmt.Println("get current user info failed, error info:", err)
|
fmt.Println("get current user info failed, error info:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
username := userModel.Username
|
if userModel.Username == "" || userModel.Password == "" {
|
||||||
userpasswd := userModel.Password
|
|
||||||
if username == "" || userpasswd == "" {
|
|
||||||
fmt.Println("current username or password is empty")
|
fmt.Println("current username or password is empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,8 +161,6 @@ func showSetting(show bool) {
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("Panel is secure with SSL")
|
fmt.Println("Panel is secure with SSL")
|
||||||
}
|
}
|
||||||
fmt.Println("username:", username)
|
|
||||||
fmt.Println("password:", userpasswd)
|
|
||||||
fmt.Println("port:", port)
|
fmt.Println("port:", port)
|
||||||
fmt.Println("webBasePath:", webBasePath)
|
fmt.Println("webBasePath:", webBasePath)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue