You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
2 years ago
..
admin Package registry changes (#19305) 2 years ago
auth Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago
dev Move user related model into models/user (#17781) 3 years ago
events Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
explore Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
feed Add `ContextUser` to http request context (#18798) 2 years ago
misc Remove dependent on session auth for api/v1 routers (#19321) 2 years ago
org Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
repo Add logic to switch between source/rendered on Markdown (#19356) 2 years ago
user Allow package linking to private repository (#19348) 2 years ago
auth.go Let web and API routes have different auth methods group (#19168) 2 years ago
auth_windows.go Let web and API routes have different auth methods group (#19168) 2 years ago
base.go Update HTTP status codes to modern codes (#18063) 2 years ago
goget.go Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 2 years ago
home.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
metrics.go Update HTTP status codes to modern codes (#18063) 2 years ago
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 3 years ago
swagger_json.go Refactor routers directory (#15800) 3 years ago
web.go Fix middleware function's placements for some `/user/...` (#19377) 2 years ago