Prevent reCaptcha multiple image selections

前端 未结 1 561
[愿得一人]
[愿得一人] 2021-02-12 08:50

I\'m using Google reCaptcha for validation purposes on a client website. Today I\'ve got a complaint/change-request from them, regarding the multiple image selection (Select 2 b

相关标签:
1条回答
  • 2021-02-12 09:49

    I think I found a solution. The official documentation contains information about a fallback mechanism for environments that do not support the reCaptcha checkbox widget.

    By appending the parameter fallback=true you can explicitly use the fallback.

    I haven't had any beer or wine reCaptchas yet since I've been using the fallback. (But still cake, sushi or road-sign reCaptchas)

    Try the following:

    <script src='https://www.google.com/recaptcha/api.js?fallback=true'></script>
    

    EDIT: But the usability of the fallback widget is just horrible..

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