mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-24 16:10:51 +08:00
feat: 增加系统安全入口功能
This commit is contained in:
@@ -39,6 +39,7 @@ var userinfoCmd = &cobra.Command{
|
||||
user := getSettingByKey(db, "UserName")
|
||||
password := getSettingByKey(db, "Password")
|
||||
port := getSettingByKey(db, "ServerPort")
|
||||
entrance := getSettingByKey(db, "SecurityEntrance")
|
||||
enptrySetting := getSettingByKey(db, "EncryptKey")
|
||||
|
||||
p := ""
|
||||
@@ -49,6 +50,7 @@ var userinfoCmd = &cobra.Command{
|
||||
p = password
|
||||
}
|
||||
|
||||
fmt.Printf("entrance: %s\n", entrance)
|
||||
fmt.Printf("username: %s\n", user)
|
||||
fmt.Printf("password: %s\n", p)
|
||||
fmt.Printf("port: %s\n", port)
|
||||
|
||||
Reference in New Issue
Block a user