🔥 移除后台登录类型设置,增加调度失败计划任务提醒

This commit is contained in:
naiba
2021-09-30 00:01:04 +08:00
parent 8af9b1ab18
commit 092f40b47f
8 changed files with 22 additions and 20 deletions

View File

@@ -457,7 +457,6 @@ type settingForm struct {
ViewPassword string
EnableIPChangeNotification string
IgnoredIPNotification string
Oauth2Type string
GRPCHost string
Cover uint8
}
@@ -479,7 +478,6 @@ func (ma *memberAPI) updateSetting(c *gin.Context) {
dao.Conf.Site.Theme = sf.Theme
dao.Conf.Site.CustomCode = sf.CustomCode
dao.Conf.Site.ViewPassword = sf.ViewPassword
dao.Conf.Oauth2.Type = sf.Oauth2Type
dao.Conf.Oauth2.Admin = sf.Admin
if err := dao.Conf.Save(); err != nil {
c.JSON(http.StatusOK, model.Response{