We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e951225 commit 0b96ba3Copy full SHA for 0b96ba3
server/api/v1/system/sys_user.go
@@ -275,6 +275,7 @@ func (b *BaseApi) SetUserInfo(c *gin.Context) {
275
var user system.SysUser
276
_ = c.ShouldBindJSON(&user)
277
user.Username = ""
278
+ user.Password = ""
279
if err := utils.Verify(user, utils.IdVerify); err != nil {
280
response.FailWithMessage(err.Error(), c)
281
return
@@ -299,6 +300,7 @@ func (b *BaseApi) SetSelfInfo(c *gin.Context) {
299
300
301
302
303
304
user.ID = utils.GetUserID(c)
305
if err, ReqUser := userService.SetUserInfo(user); err != nil {
306
global.GVA_LOG.Error("设置失败!", zap.Error(err))
0 commit comments