forgejo/routers/web
wxiaoguang 1ae3b127fc
Refactor CSRF protector (#32057)
Remove unused CSRF options, decouple "new csrf protector" and "prepare"
logic, do not redirect to home page if CSRF validation falis (it
shouldn't happen in daily usage, if it happens, redirecting to home
doesn't help either but just makes the problem more complex for "fetch")

(cherry picked from commit 1fede04b83288d8a91304a83b7601699bb5cba04)

Conflicts:
	options/locale/locale_en-US.ini
	tests/integration/repo_branch_test.go
  trivial context conflicts
2024-09-27 08:42:48 +02:00
..
admin Remove urls from translations (#31950) 2024-09-12 17:28:58 +05:00
auth Failed authentications are logged to level Warning (#32016) 2024-09-14 17:55:25 +02:00
devtest
events
explore For consistency make repo search sort options case sensitive (#31951) 2024-09-09 20:54:47 +02:00
feed
healthcheck
misc
org Fix sort order for organization home and user profile page (#31921) 2024-09-09 20:54:39 +02:00
repo feat: set fuzzy as default for issue search (#5270) 2024-09-10 15:57:58 +00:00
shared
user feat: set created_by as the default filter for /issues and /pulls (#5286) 2024-09-13 12:55:39 +00:00
base.go
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Refactor CSRF protector (#32057) 2024-09-27 08:42:48 +02:00
webfinger.go