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
..
2fa.go Refactor auth package (#17962) 3 years ago
auth.go Add option to enable CAPTCHA validation for login (#21638) 2 years ago
linkaccount.go Add option to enable CAPTCHA validation for login (#21638) 2 years ago
main_test.go Use a struct as test options (#19393) 2 years ago
oauth.go Extract updateSession function to reduce repetition (#21735) 2 years ago
oauth_test.go Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
openid.go Add option to enable CAPTCHA validation for login (#21638) 2 years ago
password.go Make better use of i18n (#20096) 2 years ago
webauthn.go WebAuthn CredentialID field needs to be increased in size (#20530) 2 years ago