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 Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
avatar Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
base Fixed assert statements. (#16089) 2021-06-07 07:27:09 +02:00
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 Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
csv
doctor Restore creation of git-daemon-export-ok files (#16508) 2021-07-22 12:53:54 +01:00
emoji Run processors on whole of text (#16155) 2021-06-17 11:35:05 +01:00
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 switch to maintained lib (#16532) 2021-07-24 13:00:41 +02:00
git Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
gitgraph
graceful Support HTTP/2 in Let's Encrypt (#16371) 2021-07-13 18:17:46 +01:00
hcaptcha
highlight Replace ARCCache with TwoQueueCache to avoid patent issue (#16240) 2021-06-24 14:37:07 -04:00
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 Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
nosql Fix setting redis db path (#15698) 2021-05-03 13:24:24 -04:00
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 Fixed assert statements. (#16089) 2021-06-07 07:27:09 +02:00
pprof
private Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
process
public Improve assets handler middleware (#15961) 2021-05-30 18:25:11 +08:00
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 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 Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
secret Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
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 Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
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 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) 2021-07-25 03:59:27 +01: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) 2021-07-21 11:32:35 +08:00