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 f8e1bb6 commit 07a842dCopy full SHA for 07a842d
server/api/v1/system/sys_user.go
@@ -274,6 +274,7 @@ func (b *BaseApi) DeleteUser(c *gin.Context) {
274
func (b *BaseApi) SetUserInfo(c *gin.Context) {
275
var user system.SysUser
276
_ = c.ShouldBindJSON(&user)
277
+ user.Username = ""
278
if err := utils.Verify(user, utils.IdVerify); err != nil {
279
response.FailWithMessage(err.Error(), c)
280
return
@@ -297,6 +298,7 @@ func (b *BaseApi) SetUserInfo(c *gin.Context) {
297
298
func (b *BaseApi) SetSelfInfo(c *gin.Context) {
299
300
301
302
user.ID = utils.GetUserID(c)
303
if err, ReqUser := userService.SetUserInfo(user); err != nil {
304
global.GVA_LOG.Error("设置失败!", zap.Error(err))
0 commit comments