Use LogAudit instead of LogAuditWithUser for role/auth provider modification (#10312)

Этот коммит содержится в:
Daniel Schalla
2019-02-22 16:20:59 +01:00
коммит произвёл GitHub
родитель 7150b9aada
Коммит 0e50ec6a35

Просмотреть файл

@@ -835,7 +835,7 @@ func updateUserRoles(c *Context, w http.ResponseWriter, r *http.Request) {
return return
} }
c.LogAuditWithUserId(c.Params.UserId, "roles="+newRoles) c.LogAudit(fmt.Sprintf("user=%s roles=%s", c.Params.UserId, newRoles))
ReturnStatusOK(w) ReturnStatusOK(w)
} }
@@ -911,7 +911,7 @@ func updateUserAuth(c *Context, w http.ResponseWriter, r *http.Request) {
return return
} }
c.LogAuditWithUserId(c.Params.UserId, fmt.Sprintf("updated user auth to service=%v", user.AuthService)) c.LogAudit(fmt.Sprintf("updated user %s auth to service=%v", c.Params.UserId, user.AuthService))
w.Write([]byte(user.ToJson())) w.Write([]byte(user.ToJson()))
} }