Skip to main content

Hcaptcha widget for Plone.

Project description

Introduction

plone.formwidget.hcaptcha is a z3c.form HCaptcha widget for use with Plone.

It is a re-work of the ‘plone.formwidget.recaptcha’_ package original written by Timo Stollenwerk.

Buildout Installation

Add the following code to your buildout.cfg to install plone.formwidget.hcaptcha:

[buildout]
...

[instance]
...
eggs =
    ...
    plone.formwidget.hcaptcha
    ...

HCaptcha setup

There is a control panel at http://path/to/site/@@hcaptcha-settings to configure the Addon. HCaptcha provides test keys, that can be used to try out the hcaptcha form and documentation at https://docs.hcaptcha.com/.

Site key: 10000000-ffff-ffff-ffff-000000000001

Secret key: 0x0000000000000000000000000000000000000000

To actually use the service, you must obtain a site key and secret key from https://www.hcaptcha.com/signup-interstitial

Usage

See the demo folder inside the distribution for an example usage.

Supermodel

You can add a captcha field in an XML model by adding something like this:

<field name="captcha" type="plone.formwidget.hcaptcha.HCaptchaWidget">
  <title>Solve Captcha</title>
  <description></description>
</field>

Source Code

Contributors please read the document Process for Plone core’s development

Sources are at the Plone code repository hosted at Github.

Changelog

1.0.1 (2022-02-20)

New features:

  • Move CI from TravisCI to Github Actions [jensens] (#29)

Bug fixes:

  • Verify against hcaptcha API with correct URL and api path, code was still checking against recaptcha siteverify api. [fredvd]

    Remove IP from sent api call as it can be considered GDPR violation. [fredvd] (#2)

1.0.0 (2021-06-10)

  • Initial release. [andreasma]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plone.formwidget.hcaptcha-1.0.1.tar.gz (22.0 kB view details)

Uploaded Source

File details

Details for the file plone.formwidget.hcaptcha-1.0.1.tar.gz.

File metadata

  • Download URL: plone.formwidget.hcaptcha-1.0.1.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for plone.formwidget.hcaptcha-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cd058375701d9fc2c25a96c32dd23f2abd2f8ba0333b2c4e868d872bd9aee37a
MD5 a3a2a879bc3f8bdf767ce59742acb39b
BLAKE2b-256 90f619038bd708778c0e8dadb470a0a98f0cdbe82f81fbfb30cbda77a4ce7ce8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page