Skip to content

Refactor: update Turnstile field to extend the new security challenge field #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 10, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/FormExtension/DonationForm/Fields/TurnstileField.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
namespace GiveCloudflareTurnstile\FormExtension\DonationForm\Fields;

use Give\Framework\FieldsAPI\Concerns\HasLabel;
use Give\Framework\FieldsAPI\Field;
use Give\Framework\FieldsAPI\SecurityChallenge;

/**
* Cloudflare Turnstile field.
* @see https://developers.cloudflare.com/turnstile/get-started/
*
* @unreleased
*/
class TurnstileField extends Field {
class TurnstileField extends SecurityChallenge {
use HasLabel;

const TYPE = 'turnstile';
}
}
Loading