前台查看密码 close #24 close #41

This commit is contained in:
naiba
2021-01-31 13:37:43 +08:00
parent 061a9992ff
commit c3dcc721dc
13 changed files with 159 additions and 15 deletions

View File

@@ -445,6 +445,7 @@ type settingForm struct {
Admin string
Theme string
CustomCode string
ViewPassword string
EnableIPChangeNotification string
}
@@ -461,6 +462,7 @@ func (ma *memberAPI) updateSetting(c *gin.Context) {
dao.Conf.Site.Brand = sf.Title
dao.Conf.Site.Theme = sf.Theme
dao.Conf.Site.CustomCode = sf.CustomCode
dao.Conf.Site.ViewPassword = sf.ViewPassword
dao.Conf.GitHub.Admin = sf.Admin
if err := dao.Conf.Save(); err != nil {
c.JSON(http.StatusOK, model.Response{