mirror of
https://github.com/skyle1995/NetworkAuth.git
synced 2026-05-25 10:42:45 +08:00
增加 自定义导航栏模块
This commit is contained in:
@@ -51,11 +51,6 @@ func SeedDefaultSettings() error {
|
||||
Value: "0",
|
||||
Description: "维护模式,0=关闭维护模式,1=开启维护模式",
|
||||
},
|
||||
{
|
||||
Name: "hide_login_entrance",
|
||||
Value: "0",
|
||||
Description: "隐藏登录入口,0=显示,1=隐藏(门户中不显示管理员或子账号登录入口)",
|
||||
},
|
||||
{
|
||||
Name: "encryption_key",
|
||||
Value: encryptionKey,
|
||||
@@ -329,6 +324,11 @@ func SeedDefaultSettings() error {
|
||||
}
|
||||
}
|
||||
|
||||
// 移除已废弃的旧设置项,管理员登录入口改由门户导航控制
|
||||
if err := db.Where("name = ?", "hide_login_entrance").Delete(&models.Settings{}).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
logrus.Info("系统设置初始化完成")
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user