hCaptcha

hCaptcha has changed API Secret key format - plugin fix - hCaptcha

hCaptcha has changed API Secret key format - plugin fix

by Widmo_ » Thu Sep 07, 2023 2:52 pm

And now plugin does not support new regex format.

Fo fix it:

Edit file: captcha/plugins/hcaptcha.php

And append new working regex

Code: Select all

 'hcaptcha_secret' => [
                                'filter' => FILTER_VALIDATE_REGEXP,
                                'options' => [
                                        //'regexp' => '#^0x[a-fA-F0-9]{40}$#'
                                        'regexp' => '#^(0x[a-fA-F0-9]{40}|ES_[a-fA-F0-9]{32})$#'
                                ]
                        ],
Widmo_
Registered User
Posts: 1
Joined: Thu Sep 07, 2023 2:48 pm

Re: hCaptcha has changed API Secret key format - plugin fix

by 5hocK » Sat Sep 16, 2023 7:19 pm

Thanks. That did the trick
5hocK
Registered User
Posts: 3147
Joined: Wed Nov 23, 2011 7:00 pm
Location: UK

Re: hCaptcha has changed API Secret key format - plugin fix

by AlfredoRamos » Sat Sep 16, 2023 9:23 pm

Thanks for the report.

A new version (1.0.3) has been sent for validation to fix this issue, however you can also download it from the following topic:

- https://www.phpbb.com/customise/db/exte ... pic/244315
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1307
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo