fixed bug for change admin user password

This commit is contained in:
RockYang
2025-09-08 22:10:29 +08:00
parent 8aa75a49d2
commit 330ac397d4
3 changed files with 25 additions and 17 deletions

View File

@@ -368,10 +368,7 @@ func (h *ConfigHandler) UpdateWxLogin(c *gin.Context) {
return
}
if data.Enabled {
h.wxLoginService.UpdateConfig(data)
}
h.wxLoginService.UpdateConfig(data)
h.sysConfig.WxLogin = data
resp.SUCCESS(c, data)
}