feat: ip change notification close #31

This commit is contained in:
naiba
2021-01-13 22:30:28 +08:00
parent 02bd23d705
commit 97fc5d790a
8 changed files with 35 additions and 9 deletions
+6 -4
View File
@@ -261,10 +261,11 @@ func (ma *memberAPI) logout(c *gin.Context) {
}
type settingForm struct {
Title string
Admin string
Theme string
CustomCode string
Title string
Admin string
Theme string
CustomCode string
EnableIPChangeNotification string
}
func (ma *memberAPI) updateSetting(c *gin.Context) {
@@ -276,6 +277,7 @@ func (ma *memberAPI) updateSetting(c *gin.Context) {
})
return
}
dao.Conf.EnableIPChangeNotification = sf.EnableIPChangeNotification == "on"
dao.Conf.Site.Brand = sf.Title
dao.Conf.Site.Theme = sf.Theme
dao.Conf.Site.CustomCode = sf.CustomCode