Skip to content

Commit

Permalink
Update packages/cms/lib/modules/resource-form-widgets/lib/submit.js
Browse files Browse the repository at this point in the history
Co-authored-by: Rudi van Hierden <[email protected]>
  • Loading branch information
LorenzoJokhan and rudivanhierden authored Oct 6, 2023
1 parent ed5d1b7 commit 00b0cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cms/lib/modules/resource-form-widgets/lib/submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ module.exports = async function(self, options) {
}

if(req.body && req.body.areYouABot) {
const captchData = req.session.captcha;
const isCaptchaValid = captchData && captchData.text && captchData.text === req.body.areYouABot;
const captchaData = req.session.captcha;
const isCaptchaValid = captchaData && captchaData.text && captchaData.text === req.body.areYouABot;

if (!isCaptchaValid) {
return res.status(403).json({
Expand Down

1 comment on commit 00b0cb4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Published new image: openstad/frontend:feature-add-captcha-to-resource-form-if-set-to-everyone-00b0cb4

Please sign in to comment.