gitea/modules
zeripath 719e2f26d5
Pass down SignedUserName down to AccessLogger context (#16605) (#16616)
Backport #16605

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>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-04 13:26:35 -04:00
..
analyze
auth Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup (#16570) 2021-07-29 18:52:38 +01:00
avatar
base
cache Add LRU mem cache implementation (#16226) 2021-07-10 23:54:15 +02:00
charset
context Pass down SignedUserName down to AccessLogger context (#16605) (#16616) 2021-08-04 13:26:35 -04:00
convert Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
cron Fix archive error when rename repo or user (#16399) 2021-07-13 14:16:31 +02:00
csv
doctor Restore creation of git-daemon-export-ok files (#16508) (#16514) 2021-07-22 15:52:02 +02:00
emoji
eventsource
generate Switch to maintained jwt lib (#16532) (#16533) 2021-07-24 11:13:50 -04:00
git Add TestPrepareWikiFileName (#16487) (#16498) 2021-07-21 03:37:00 +01:00
gitgraph
graceful Support HTTP/2 in Let's Encrypt (#16371) 2021-07-13 18:17:46 +01:00
hcaptcha
highlight
httpcache
httplib Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
indexer Fix data race in bleve indexer (#16474) (#16509) 2021-07-22 11:42:32 +08:00
lfs Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
log Fix race in log (#16490) (#16505) 2021-07-21 20:19:36 +08:00
markup Fix table alignment in markdown (#16596) (#16602) 2021-08-04 00:16:00 +01:00
matchlist
metrics
migrations Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
nosql
notification Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
options
password
pprof
private Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
process
public
queue Fix race in log (#16490) (#16505) 2021-07-21 20:19:36 +08:00
recaptcha
references Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
repofiles Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
repository Fix archive error when rename repo or user (#16399) 2021-07-13 14:16:31 +02:00
secret Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
session
setting Add LRU mem cache implementation (#16226) 2021-07-10 23:54:15 +02:00
ssh Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
storage Retry rename on lock induced failures (#16435) 2021-07-15 11:46:07 -04:00
structs Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
svg
sync
task Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
templates
test
timeutil
translation
typesniffer Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
upload
uri
user
util Handle too long PR titles correctly (#16517) (#16549) 2021-07-26 17:49:48 +02:00
validation Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
web Restore CORS on git smart http protocol (#16496) (#16506) 2021-07-21 15:03:02 +01:00