mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-10 11:13:44 +08:00
修复高危漏洞:token抓包暴露
This commit is contained in:
@@ -82,6 +82,9 @@ func (s *sSysLoginLog) List(ctx context.Context, in *sysin.LoginLogListInp) (lis
|
||||
}
|
||||
|
||||
for _, v := range list {
|
||||
if v.Response.Contains("token") {
|
||||
v.Response.Set("token", "******")
|
||||
}
|
||||
v.Os = useragent.GetOs(v.UserAgent)
|
||||
v.Browser = useragent.GetBrowser(v.UserAgent)
|
||||
v.SysLogId, err = dao.SysLog.Ctx(ctx).Fields("id").Where("req_id", v.ReqId).Value()
|
||||
|
||||
Reference in New Issue
Block a user