christianwgd / django-friendly-captcha Goto Github PK
View Code? Open in Web Editor NEWDjango field/widget for Friendly Capture (https://friendlycaptcha.com).
License: Other
Django field/widget for Friendly Capture (https://friendlycaptcha.com).
License: Other
I have my widget set to data-start = 'auto'. After ValidationError in the form, the form gets reloaded, but the widget doesn't restart.
The documentation of friendlycaptcha gives a reset() function to reset the widget, but I can't seem to find an equivalent for this.
Hi. The values is generated on html form.
But doesn't send to server on submit.
Each time I got the error
Captcha failed validation {'success': False, 'errors': ['solution_missing']}
Tnanks a lot for any help
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/python-publish.yml
actions/checkout v4
actions/setup-python v5
friendly_captcha/widgets.py
friendly-challenge 0.9.14
friendly-challenge 0.9.14
The friendly_captcha widget template is missing in installed package, sorry for any inconvenience. I will fix that as soon as possible.
There is a getattr
missing in widgets.py line 18.
Was working only because the javascript was provided explicitly in the template.
Hello,
I saw that there is an open source implementation of the verification server https://github.com/FriendlyCaptcha/friendly-lite-server. Would it be possible to implement it in this module to perform captcha verification locally?
while django-recaptcha
and django-hcaptcha
can be used out-of the box with a very small extension of related <form_file>.py, e.g.
...
+# CAPTCHA support
+from django.conf import settings
+from captcha.fields import ReCaptchaField
+from hcaptcha.fields import hCaptchaField
...
class Form(forms.Form):
...
+ # CAPTCHA support
+ captcha_service = getattr(settings, 'CAPTCHA_SERVICE', None)
+ if captcha_service == 'recaptcha':
+ captcha = ReCaptchaField()
+ elif captcha_service == 'hcaptcha':
+ hcaptcha = hCaptchaField()
...
This is not working with this django-friendly-captcha
as it is required to adjust the templates to inject the required script "assets" as mentioned here: https://pypi.org/project/django-friendly-captcha/
<script type="module" src="https://unpkg.com/[email protected]/widget.module.min.js" async defer></script>
<script nomodule src="https://unpkg.com/[email protected]/widget.min.js" async defer></script>
I would assume other FRC implementations have this hardcoded in templates, so for an easy replace-to-use I would suggest also to implement this in same way as recaptcha/hcaptcha have done this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.