🚸 IP 变更提醒增强

This commit is contained in:
naiba
2021-06-22 14:05:36 +08:00
parent d59acfa824
commit 365148e0ac
6 changed files with 53 additions and 22 deletions

View File

@@ -449,6 +449,7 @@ type settingForm struct {
EnableIPChangeNotification string
IgnoredIPNotification string
Oauth2Type string
Cover uint8
}
func (ma *memberAPI) updateSetting(c *gin.Context) {
@@ -461,6 +462,7 @@ func (ma *memberAPI) updateSetting(c *gin.Context) {
return
}
dao.Conf.EnableIPChangeNotification = sf.EnableIPChangeNotification == "on"
dao.Conf.Cover = sf.Cover
dao.Conf.IgnoredIPNotification = sf.IgnoredIPNotification
dao.Conf.Site.Brand = sf.Title
dao.Conf.Site.Theme = sf.Theme