How to use CAPTCHA with TLS

I am trying to use CAPTCHA in registration web page with TLS. I installed ejabberd 2.1.6 and configured as

{hosts, ["example.org"]}.

{captcha_cmd, ...}.
{captcha_host, "example.org:5281"}.

{listen,
 [
  ...
  {5281, ejabberd_http, [
                         tls,
                         {certfile, ...},
                         captcha,
                         register
                        ]}
 ]}.

{modules,
 [
  ...
  {mod_register_web, []},
  ...
 ]}.

But, CAPTCHA image is not shown in registration page https://example.org:5281/register/new. I wonder URL for the image is "http://", not "https://" in HTML source of the page.

Please tell me how to use CAPTCHA with TLS.

You have found a bug in

You have found a bug in ejabberd. I've reported it in https://support.process-one.net/browse/EJAB-1406

In that page you can find a workaround configuration. Or you can download, apply and compile the source code patch from https://git.process-one.net/ejabberd/mainline/commit/f91eb52890bec51c53e...

Thank you

Thank you so much! This patch solved my problem.

This bug is back in 16.04 and

This bug is back in 16.04 and I need a patch.

kintarowonders wrote: This

kintarowonders wrote:

This bug is back in 16.04 and I need a patch.

Remember to provide the host and port with something like this:

captcha_host: "localhost:5280"
Syndicate content