forgejo/modules
Jason Song e7a484e401
Avoid importing modules/web/middleware in modules/session (#30584)
Related to #30375.

It doesn't make sense to import `modules/web/middleware` and
`modules/setting` in `modules/web/session` since the last one is more
low-level.

And it looks like a workaround to call `DeleteLegacySiteCookie` in
`RegenerateSession`, so maybe we could reverse the importing by
registering hook functions.

(cherry picked from commit 61457cdf6b49225ae831fd9fb084deadd8bdb0fb)
2024-04-21 16:28:16 +02:00
..
actions
activitypub
analyze
assetfs
auth
avatar
base
cache
charset
container Add container.FilterSlice function (gitea#30339) 2024-04-16 11:49:44 +02:00
csv
emoji
eventsource
generate
git
gitgraph
gitrepo
graceful
hcaptcha
highlight
hostmatcher
html
httpcache
httplib
indexer
issue/template
json
label
lfs
log
markup Fix panic where now a third link breaks everything 2024-04-19 23:54:46 +02:00
mcaptcha
metrics
migration
nosql
optional Add interface{} to any replacement to make fmt, exclude *.pb.go (#30461) 2024-04-15 20:01:36 +02:00
options
packages Some NuGet package enhancements 2024-04-15 20:45:14 +02:00
paginator
pprof
private
process
proxy
proxyprotocol
public
queue
recaptcha
references
regexplru
repository
secret
session Avoid importing modules/web/middleware in modules/session (#30584) 2024-04-21 16:28:16 +02:00
setting
sitemap
ssh
storage
structs Update API to return 'source_id' for users (#29718) 2024-04-21 12:04:18 +02:00
svg
sync
system
templates Avoid losing token when updating mirror settings (#30429) 2024-04-15 20:01:36 +02:00
test
testlogger
timeutil
translation
turnstile
typesniffer
updatechecker
uri
user
util Clean up log messages (#30313) 2024-04-15 20:01:35 +02:00
validation
web Avoid importing modules/web/middleware in modules/session (#30584) 2024-04-21 16:28:16 +02:00
webhook