forgejo/routers
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
..
api Fix panic in teams API when requesting members (#19360) 2022-04-11 20:49:49 +08:00
common Add Goroutine stack inspector to admin/monitor (#19207) 2022-03-31 19:01:43 +02:00
install Skip frontend ROOT_URL check on installation page, remove unnecessary global var (#19291) 2022-04-01 16:00:26 +08:00
private Remove git.Command.Run and git.Command.RunInDir* (#19280) 2022-04-01 10:55:30 +08:00
utils
web Fix middleware function's placements for some /user/... (#19377) 2022-04-12 10:02:58 +08:00
init.go Remove dependent on session auth for api/v1 routers (#19321) 2022-04-08 06:22:10 +02:00