Snaptcha
ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6
Back to this add-on's main page
View Other Add-ons From Brian Litzinger
Snaptcha 1.7.6 always rejecting security level 2 & 3
General (Resolved)
Environ-IT
|
Posted: 08 March 2017 01:10 PM |
|
|
|
I have installed snaptcha 1.7.6 on EE 2.7.2
Security level 1 works fine, but fails for level 2 and 3
I have two contact forms on the same page.
The snaptcha fields are defined as follows
{exp:snaptcha:field id=“1”} in Form 1
{exp:snaptcha:field id=“2”} in Form 2
When using level 2, I am getting the following error message in the log (I added the log output lines to print out the values)
2017-03-08T15:07:21+00:00 Rejected form submission at https://www.digbybrown.co.uk/ from 80.229.20.80 (hhWoVHXyMaXhF)
2017-03-08T15:07:21+00:00 Rejected form submission at https://www.digbybrown.co.uk/ from 80.229.20.80 (VuQjOXjPcQXtk)
2017-03-08T15:07:21+00:00 Rejected form submission at https://www.digbybrown.co.uk/ from 80.229.20.80 (Snaptcha field not equal to unique secret)
Thanks for your help in this.
Andrew
|
|
|
PutYourLightsOn
|
Posted: 08 March 2017 01:58 PM |
# 1
|
|
|
What add-on is generating the form you’re using? I see that on your home page, there are two Snaptcha fields included inside the main inquiry form, which leads me to believe you’re using an add-on which has Snaptcha support built-in, but then also adding an additional Snaptcha field, which will have a different value, and thus those two fields will collide.
|
|
|
Environ-IT
|
Posted: 08 March 2017 02:45 PM |
# 2
|
|
|
I’m using Freeform pro.
Does that automatically add the snaptcha fields for me?
|
|
|
|
Environ-IT
|
Posted: 09 March 2017 04:59 AM |
# 4
|
|
|
I’ve removed the snaptcha fields this morning, and still exactly the same response.
2017-03-08T15:19:27+00:00 Rejected form submission at https://www.digbybrown.co.uk/ from 80.229.20.80 (Snaptcha field not equal to unique secret)
2017-03-09T08:54:13+00:00 Rejected form submission at https://www.digbybrown.co.uk/ from 80.229.20.80 (Snaptcha field not found in database)
2017-03-09T08:56:56+00:00 Rejected form submission at https://www.digbybrown.co.uk/ from 80.229.20.80 (apvNWWCjblldo)
2017-03-09T08:56:56+00:00 Rejected form submission at https://www.digbybrown.co.uk/ from 80.229.20.80 (VuQjOXjPcQXtk)
2017-03-09T08:56:56+00:00 Rejected form submission at https://www.digbybrown.co.uk/ from 80.229.20.80 (Snaptcha field not equal to unique secret)
|
|
|
Environ-IT
|
Posted: 09 March 2017 05:03 AM |
# 5
|
|
|
Further update.
Snaptcha is working at level 2 on pages with a single enquiry form.
The home page has two enquiry forms, and is failing at level 2 and 3.
|
|
|
Environ-IT
|
Posted: 09 March 2017 05:07 AM |
# 6
|
|
|
Further further update.
On the home page the second form submits fine. Only the first one fails. Is this something to do with the fields clashing on the same page?
I see you can enter an id for the snaptcha field when you specify it manually, but when it’s added automatically what do you do?
Thanks
Andrew
|
|
|
PutYourLightsOn
|
Posted: 09 March 2017 10:47 AM |
# 7
|
|
|
I see that you have some nesting in your forms - there are 9 opening form tags on your home page, but only 5 forms. Nesting forms can become unpredictable, causing fields from outside of the intended form to be posted on submit. Can you clean that up and verify that this is not the problem?
|
|
|
Environ-IT
|
Posted: 10 March 2017 06:26 AM |
# 8
|
|
|
The nesting wasn’t the issue.
I’ve remembered now that the client asked me to clear the contents of the form in the use case where the user uses the back button to return to the home page from the enquiry response page. So as a quick fix I’d just reset() on page load.
This was clearing the snaptcha values on the first enquiry form and causing the failure.
Thanks for you assistance in this.
Andrew
|
|
|
PutYourLightsOn
|
Posted: 10 March 2017 09:41 AM |
# 9
|
|
|
Ah, that would do it! Glad you sorted it out.
|
|
|