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.
gitea/routers/web
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
explore Add `context.Context` to more methods (#21546) 2 years ago
feed Fix setting HTTP headers after write (#21833) 2 years ago
healthcheck
misc
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
auth_windows.go
base.go
goget.go
home.go Add `context.Context` to more methods (#21546) 2 years ago
metrics.go
nodeinfo.go
swagger_json.go
web.go Allow disable RSS/Atom feed (#21622) 2 years ago
webfinger.go