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.
Xinyu Zhou 68e934ab5d
Add option to enable CAPTCHA validation for login (#21638)
Enable this to require captcha validation for user login. You also must
enable `ENABLE_CAPTCHA`.

Summary:
- Consolidate CAPTCHA template
- add CAPTCHA handle and context
- add `REQUIRE_CAPTCHA_FOR_LOGIN` config and docs
- Consolidate CAPTCHA set-up and verification code 

Partially resolved #6049 

Signed-off-by: Xinyu Zhou <i@sourcehut.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>
2 years ago
..
admin Revert unrelated changes for SMTP auth (#21767) 2 years ago
auth Add option to enable CAPTCHA validation for login (#21638) 2 years ago
events Improve Stopwatch behavior (#18930) 2 years ago
explore Add `context.Context` to more methods (#21546) 2 years ago
feed Fix setting HTTP headers after write (#21833) 2 years ago
healthcheck Update go-chi/cache to utilize Ping() (#19719) 2 years ago
misc Fix panic in team repos API (#19431) 2 years ago
org Add package registry cleanup rules (#21658) 2 years ago
repo Prepend refs/heads/ to issue template refs (#20461) 2 years ago
shared/packages Add package registry cleanup rules (#21658) 2 years ago
user Add package registry cleanup rules (#21658) 2 years ago
auth.go Remove legacy `+build:` constraint (#19582) 2 years ago
auth_windows.go Let web and API routes have different auth methods group (#19168) 2 years ago
base.go Share HTML template renderers and create a watcher framework (#20218) 2 years ago
goget.go Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 2 years ago
home.go Add `context.Context` to more methods (#21546) 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 Allow disable RSS/Atom feed (#21622) 2 years ago
webfinger.go Fix various typos (#20338) 2 years ago