gitea/modules
zeripath 7c4172ef71
Pass down SignedUserName down to AccessLogger context (#16605)
* Pass down SignedUserName down to AccessLogger context

Unfortunately when the AccessLogger was moved back before the contexters the
SignedUserName reporting was lost. This is due to Request.WithContext leading to a
shallow copy of the Request and the modules/context/Context being within that request.

This PR adds a new context variable of a string pointer which is set and handled
in the contexters.

Fix #16600

Signed-off-by: Andrew Thornton <art27@cantab.net>

* handle nil ptr issue

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-04 13:26:30 -04:00
..
analyze
auth
avatar
base
cache Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
charset
context Pass down SignedUserName down to AccessLogger context (#16605) 2021-08-04 13:26:30 -04:00
convert Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
cron
csv
doctor
emoji
eventsource Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
generate
git Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
gitgraph
graceful
hcaptcha
highlight
httpcache
httplib Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
indexer Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
json Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
lfs Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
log Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
markup Fix table alignment in markdown (#16596) 2021-08-02 17:11:18 +01:00
matchlist
metrics
migrations
nosql
notification Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
options
password
pprof
private Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
process
public
queue Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
recaptcha Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
references
repofiles
repository Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
secret
session Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
setting Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
ssh
storage Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
structs Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
svg
sync
task Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
templates Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
test
timeutil
translation
typesniffer
upload
uri
user
util Handle too long PR titles correctly (#16517) 2021-07-25 03:59:27 +01:00
validation
web