🚸 IP 变更提醒增强

This commit is contained in:
naiba committed 2021-06-22 14:05:36 +08:00
1 parent 45585d13ff
commit c05e0658d8
6 files changed
+53 -22

No files matched your search

+2
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