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.2 (2022-06-23)

New features:

  • Add an adapter to show the controlpanel in Volto [erral] (#8)

  • Dutch translation for public validator error message. [fredvd] (#10)

Bug fixes:

  • Create translation files [erral] (#9)

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.3.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

plone.formwidget.hcaptcha-1.0.3-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for plone.formwidget.hcaptcha-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ca2236a7705ef9ab3228880a5a51d16ea1642cba8be234d43fa5ab3bc4b88a0e
MD5 3095d8f66e1c451d6f77f0cf9c03bd8f
BLAKE2b-256 c68462c54fbefd6822c47bb534ca41b793dbd5dad94000a256167206bae1213b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for plone.formwidget.hcaptcha-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a9cbfbe18fcc8b1c45374ea48a3885b8eb99185d92f7d1f3f82a72d36bfdf252
MD5 0312c3d86a7a355fa7aa098de2ea22fc
BLAKE2b-256 78afef17b0a7b1346babfb257c8ac4c5b858e8759194fb3d7c71b38049fdad4e

See more details on using hashes here.

Supported by

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