Recaptcha not working on https

后端 未结 7 1813

i have a site in codeigniter,and that site working perfectly on http.

My client moved the site to https.

Then now when user registr

相关标签:
7条回答
  • 2020-12-18 02:05

    For SSL (https) use:

    echo recaptcha_get_html($publickey,true);
    

    rather than:

    echo recaptcha_get_html($publickey);
    

    This is because recaptcha_get_html() in recaptchalib.php (which gets the distorted text image) defaults to http unless you tell it otherwise.

    0 讨论(0)
提交回复
热议问题