forgejo/modules/context
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
..
access_log.go
api.go Add Cache-Control header to html and api responses, add no-transform (#20432) 2022-07-23 14:38:03 +08:00
api_org.go
api_test.go
auth.go Respond with a 401 on git push when password isn't changed yet (#20026) 2022-06-19 20:23:00 +01:00
captcha.go Add option to enable CAPTCHA validation for login (#21638) 2022-11-22 21:13:18 +00:00
context.go Fix setting HTTP headers after write (#21833) 2022-11-18 01:55:15 +08:00
csrf.go
form.go
org.go Add user/organization code search (#19977) 2022-10-11 00:12:03 +01:00
package.go Fix package access for admins and inactive users (#21580) 2022-10-24 22:23:25 +03:00
pagination.go
permission.go
private.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
repo.go Prepend refs/heads/ to issue template refs (#20461) 2022-11-22 20:58:49 +08:00
response.go
utils.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
xsrf.go
xsrf_test.go