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
    ...

ReCaptcha 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.0 (2021-06-10)

Breaking changes:

  • Move from Recaptcha to Hcaptcha, using different api and captcha service provider [andreasma] Remove compatibility with Python 2 and Plone versions minor to 5.2 [andreasma] (#30)

1.0.0 (unreleased)

  • 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.0.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plone.formwidget.hcaptcha-1.0.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plone.formwidget.hcaptcha-1.0.0.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.7.0 requests/2.25.1 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.9.2

File hashes

Hashes for plone.formwidget.hcaptcha-1.0.0.tar.gz
Algorithm Hash digest
SHA256 94aa581ade93b081294dea07b59cae3349ec0fc57851b48caafd165e5b622468
MD5 8d645baf3358d64ca281610d9f13a12e
BLAKE2b-256 7e82d83151761df6ffcfdec1978c8f6475019fccf5e464adea701cf737f971ac

See more details on using hashes here.

File details

Details for the file plone.formwidget.hcaptcha-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: plone.formwidget.hcaptcha-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.7.0 requests/2.25.1 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.9.2

File hashes

Hashes for plone.formwidget.hcaptcha-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7c430a933acfe8b9896c8c6f31cecffb48367d01a3437b8860d128c6daa8151
MD5 92100764a4ff05e40b0b6b59b43faaa0
BLAKE2b-256 a32fcbe7b5ecca299dfd8a7cbad9c3cdc9f75361a5fe2bf679d59a96f133ed49

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