CAPTCHA never show up on the login page

Hi, all!

I am trying to enable CAPTCHA, by doing the following (gitea/gitea/conf/app.ini):

ENABLE_CAPTCHA                    = true 
CAPTCHA_TYPE                      = mcaptcha
MCAPTCHA_SECRET                   = ***
MCAPTCHA_SITEKEY                  = ***
MCAPTCHA_URL                      =

As well, I have tried with hCaptcha instead of mCaptcha:

CAPTCHA_TYPE                      = hcaptcha
HCAPTCHA_SITEKEY                  = ***
HCAPTCHA_SECRET                   = ***

However, CAPTCHA never shows up on the login page. I assume I am missing something here. Is there something else that needs to be done to have CAPTCHA working? Any help would be appreciated.

I’m running version: 1.18.0.

This feature is not in 1.18.x. The docs can be confusing as they are updated for the latest unreleased version (1.19.0), not the latest released version. It will be available in Gitea 1.19.0 when it is released. You can also get it with the latest development builds, but those are not recommended for production environments.

See: Add option to enable CAPTCHA validation for login by xin-u · Pull Request #21638 · go-gitea/gitea · GitHub


Thank you for explaining this to me @jake! Then I will wait for 1.19.0.

1 Like

I have enabled CAPTCHA, set the CAPTCHA type to image as well as the CAPTCHA secret but upon logging in or registering an account; CAPTCHA is not seen on the account or registration account pages ?

Gitea 1.21.3