Add honeypot field to poll creation form
An invisible "website" field is rendered off-screen in the create form. If a bot fills it in, the poll is not created and no mail is sent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
04cbc5bcd3
commit
ffe93a3256
5 files changed
+79
-1
No files matched your search
@@ -30,6 +30,7 @@ $this->assign('title', __('Live-Umfragen ohne Login'));
|
||||
'required' => true,
|
||||
'autocomplete' => 'email',
|
||||
]) ?>
|
||||
<?= $this->element('honeypot') ?>
|
||||
<?= $this->element('captcha', ['captcha' => $captcha]) ?>
|
||||
<p class="hint"><?= __('Wir schicken dir einen geheimen Admin-Link. Die Adresse wird nur dafür verwendet.') ?></p>
|
||||
<?= $this->Form->button(__('Umfrage erstellen'), ['class' => 'button button--primary']) ?>
|
||||
|
||||
Reference in new issue
Block a user