0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 01:14:10 -05:00
forgejo/routers/web
Gusted 0d3d9675c6
Fix middleware function's placements for some /user/... (#19377)
- Add reqSignIn to `/user/task/{task}` as it specific to a logged in user currently not-logged in user could cause a NPE.
- Move `/user/stopwatch` & `/user/search` middleware before the actual function is called, because functions are executed in order and currently hadn't any effect and could as well cause a NPE due to that.
- Remove `/user/active` reqSignIn middleware, because when you want to active a account you're not "signed in" so it doesn't make sense to add that middleware.
2022-04-12 10:02:58 +08:00
..
admin Package registry changes (#19305) 2022-04-06 03:32:09 +02:00
auth Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2022-04-08 13:21:05 +08:00
dev
events
explore Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
feed
misc Remove dependent on session auth for api/v1 routers (#19321) 2022-04-08 06:22:10 +02:00
org Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
repo Add logic to switch between source/rendered on Markdown (#19356) 2022-04-10 23:01:35 +08:00
user Allow package linking to private repository (#19348) 2022-04-09 23:57:37 +08:00
auth.go
auth_windows.go
base.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Fix middleware function's placements for some /user/... (#19377) 2022-04-12 10:02:58 +08:00