Skip to content

Commit

Permalink
chore: Disable captcha validation when form does not require it
Browse files Browse the repository at this point in the history
  • Loading branch information
hellopablo committed Nov 21, 2023
1 parent 2227b23 commit 93eb9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion survey/controllers/Survey.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function index(
(array) $oInput->post('field')
);

$bIsCaptchaValid = $bIsSave || !$oCaptcha->isEnabled()
$bIsCaptchaValid = $bIsSave || !$oSurvey->form->has_captcha || !$oCaptcha->isEnabled()
? true
: $oSurvey->form->has_captcha && $oCaptcha->verify();

Expand Down

0 comments on commit 93eb9d1

Please sign in to comment.