Giter Site home page Giter Site logo

django-nocaptcha-recaptcha's People

Contributors

db654 avatar joejasinski avatar pablorecio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-nocaptcha-recaptcha's Issues

Recaptcha dissapears on AJAX callback

I believe the django-package (https://github.com/praekelt/django-recaptcha) that this package is based on, has this ability of rendering the recaptcha field when form is fetched from an AJAX success.

Does this package has this ability too?

I have a form with some fields and of course a captcha = NoReCaptchaField(gtag_attrs={'data-size': 'compact'}) one. When I fully reload the page (where the form appears), the recaptcha field renders perfect. But when I render the same form, via AJAX, recaptcha disappears (only by hitting F5, it re-appears).

Any thoughts?

Django 2 compatibility

Hi,
I found a problem in this file

  File "/.../lib/python3.6/site-packages/nocaptcha_recaptcha/client.py", line 8, in <module>
    from django.utils import simplejson as json

This is trying to import simplejson (not available since Django 1.5) instead of json package, because of this test, that checks Django only checks the subversion :

if django.VERSION[1] >= 5:
    import json
else:
    from django.utils import simplejson as json

By replacing the first line with this, this is ok :
if django.VERSION[1] >= 5 or django.VERSION[0] > 1:

Please update it, that would be great :)

Thanks,
Louison

Testing mode

Could be very useful to mention in readme file an example, how to use this library in integration tests
The right settings is:

test setUp:
os.environ['NORECAPTCHA_TESTING'] = 'True'

POST data:
'g-recaptcha-response: 'PASSED'

...raises ValidationError otherwise

Recaptcha v3

Hello,
is there a way to use recaptcha v3?

Saludos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.