Skip to content

Commit 719a8ee

Browse files
committed
Replace honeypot with password2
Fixes #30
1 parent 361cfb5 commit 719a8ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

captcha/sortables.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ public function check_answer()
474474
// Well how did the user sorted it
475475
$options_left = $this->request->variable('sortables_options_left', array(0));
476476
$options_right = $this->request->variable('sortables_options_right', array(0));
477-
$honeypot = $this->request->variable('password', []);
478-
if ($honeypot != [])
477+
$honeypot = $this->request->variable('password2', '');
478+
if ($honeypot)
479479
{
480480
return false;
481481
}

styles/prosilver/template/captcha_sortables.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h3>{L_CONFIRMATION}</h3>
7272
<div id="sortables_options_right"></div>
7373
</dd>
7474
</dl>
75-
<input type="text" name="password" style="display:none !important" tabindex="-1" autocomplete="new-password">
75+
<input type="text" name="password2" style="display:none !important" tabindex="-1" autocomplete="new-password">
7676

7777
<!-- IF S_TYPE == 1 -->
7878
</fieldset>

0 commit comments

Comments
 (0)