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.
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>
2 years ago
..
access_log.go Pass down SignedUserName down to AccessLogger context (#16605) 3 years ago
api.go Add Cache-Control header to html and api responses, add no-transform (#20432) 2 years ago
api_org.go Move organization related structs into sub package (#18518) 2 years ago
api_test.go format with gofumpt (#18184) 2 years ago
auth.go Respond with a 401 on git push when password isn't changed yet (#20026) 2 years ago
captcha.go Add option to enable CAPTCHA validation for login (#21638) 2 years ago
context.go Fix setting HTTP headers after write (#21833) 2 years ago
csrf.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago
form.go Add config options to hide issue events (#17414) 2 years ago
org.go Add user/organization code search (#19977) 2 years ago
package.go Fix package access for admins and inactive users (#21580) 2 years ago
pagination.go Remove tab/TabName usage where it's not needed (#19973) 2 years ago
permission.go Move access and repo permission to models/perm/access (#19350) 2 years ago
private.go Add more linters to improve code readability (#19989) 2 years ago
repo.go Prepend refs/heads/ to issue template refs (#20461) 2 years ago
response.go format with gofumpt (#18184) 2 years ago
utils.go Add more linters to improve code readability (#19989) 2 years ago
xsrf.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago
xsrf_test.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago