Giter Site home page Giter Site logo

tiesjan / django-hcaptcha-field Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrejzbin/django-hcaptcha

11.0 11.0 1.0 51 KB

Django hCaptcha Field provides a simple way to protect your Django forms using hCaptcha.

Home Page: https://pypi.org/project/django-hcaptcha-field/

License: BSD 3-Clause "New" or "Revised" License

Python 99.29% HTML 0.71%
captcha django-forms hcaptcha python

django-hcaptcha-field's People

Contributors

andrejzbin avatar pitrk avatar tiesjan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jraylan

django-hcaptcha-field's Issues

Programmatically pass the captcha

Hey, I am trying to write a view test with a form that uses hCAPTCHA field. Could I somehow pass the CAPTCHA with the Django Test Client?

Why the fork?

Just wondering what the differences are between this and django-hcaptcha. It would be useful to say briefly in the README why I might want to use this instead of that, because it's impossible to tell at the moment.

Thanks for working on it though, and I hope there are excellent reasons :)

urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] 1131 ?

I'm not sure if this is an error with django-hcaptcha-field or something else, but I get the Python error

urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] 1131

when my contact form POSTS. When not using hcaptcha_field, the contact form works.

I tried using this in views.py to disable SSL for tests

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

and clears the error CERTIFICATE_VERIFY_FAILED and the form works, but hcaptcha throws an error on the form.

I'm using Django 4.0.3, Python 3.8 on Ubuntu 20.04

I've force updated the Let's Encrypt SSLs and installed pip install certifi

Is this an issue with the SSL on my server, the way django-hcaptcha-field uses it, or an issue with hCaptcha's SSL?

Test Key Handling

Thanks for making the switch to hCaptcha super smooth in my project! Just one minor bump...when running automated tests, hCaptcha provides a set of test keys that don't seem to be accounted for in the form field validator.

I lazily patched it to just skip all validation if the test key is in use, but to do it 'properly' you may want to validate that the test response is produced.

https://docs.hcaptcha.com/#integration-testing-test-keys

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.