-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Description
Step to reproduce:
- Set
config.filter_spam = false - Don't set any recaptcha key
- Send an Inquiry
- Check if the inquiry has been saved
If the bug is still present, the inquiry is not saved.
Hint:
refinerycms-inquiries/lib/refinery/inquiries/spam_filter.rb
Lines 14 to 24 in dba0730
| if recaptcha? | |
| if recaptcha_validated? | |
| @valid = true | |
| @inquiry.save | |
| else | |
| @inquiry.errors.add(:base, ::I18n.t(:captcha_invalid, scope: "refinery.inquiries.spam_filter")) | |
| end | |
| elsif simple_filter? | |
| @inquiry.save | |
| @valid = simple_filter_validated? | |
| end |
Metadata
Metadata
Assignees
Labels
No labels