gitea/routers
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>
2022-11-22 21:13:18 +00:00
..
api Replace yaml.v2 with yaml.v3 (#21832) 2022-11-21 16:36:59 +08:00
common Fix setting HTTP headers after write (#21833) 2022-11-18 01:55:15 +08:00
install Fix token generation when using INTERNAL_TOKEN_URI (#21669) 2022-11-03 20:55:09 +00:00
private Add `context.Context` to more methods (#21546) 2022-11-19 16:12:33 +08:00
utils refactor webhook *NewPost (#20729) 2022-08-11 17:48:23 +02:00
web Add option to enable CAPTCHA validation for login (#21638) 2022-11-22 21:13:18 +00:00
init.go Add some documentation to packages (#21648) 2022-11-12 18:59:15 +00:00