feat: 增加系统安全入口功能

This commit is contained in:
ssongliu
2023-04-24 14:30:54 +08:00
committed by ssongliu
parent 5222388ba1
commit d5f400670c
25 changed files with 183 additions and 139 deletions
+2
View File
@@ -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)