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 in register member - Forum
Support Request
Sjoerd
|
Posted: 03 December 2014 07:17 AM |
|
|
|
I am not sure exactly where to put which code in the Forum register member template. I use the Scaffold theme.
|
|
|
jaybeckr
|
Posted: 09 March 2015 04:30 PM |
# 1
|
|
|
Were you able to get this working? I tried both the {exp:snaptcha:field} and the html in my template but both claim it fails the security test. My log says “Snaptcha field not equal to unique secret” which seems to be a lvl2 error rather than the security level 3 that is set. By short circuiting the security_level 2 check
// medium security level else if (false && $security_level == 2) {
and using the {exp:snaptcha:field} I am able to use it.
|
|
|
jaybeckr
|
Posted: 09 March 2015 04:34 PM |
# 2
|
|
|
Further digging finds this:
// member register security level must be less than 3 $member_register_security_level = ($this->settings['security_level'] < 3) ? $this->settings['security_level'] : 2;
So something else is going on here, it seems to work at lvl 3 so why this ^?
|
|
|
PutYourLightsOn
|
Posted: 14 March 2015 07:44 AM |
# 3
|
|
|
you’re correct in thinking that member registration validation happens at security level 2. this is a workaround for EE’s poor native member templates. you should be able to generate a security level 2 field in your Scaffold theme template using the following tag:
{exp:snaptcha:field security_level="2"}
please let me know if that works for you.
|
|
|