简体   繁体   中英

Old version of recaptcha get displayed instead of the newer version using the rails gem “Recaptcha”

Thanks to the gem https://github.com/ambethia/recaptcha/ (version 0.3.6), I managed to integrate Google Recaptcha into my rails app. The problem is that only the old version (V1) is displayed, similar to below.

V1验证码

However, I would prefer to the newer version with the checkbox like below, which is much easier for the users. Any idea how to get there?

v1验证码

There is some discussion about this, see: https://github.com/ambethia/recaptcha/issues/112

You are free to implement the new API by yourself it's not that hard actually, and if you have the knowledge submit a pull request to the original repository with a working solution :-)

The instructions on how to implement reCaptcha can be found here: http://www.google.com/recaptcha/intro/index.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM