Extension

Archived
Forum
(read-only)

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
Sjoerd

I am not sure exactly where to put which code in the Forum register member template. I use the Scaffold theme.

jaybeckr
# 1
jaybeckr

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
# 2
jaybeckr

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
# 3
PutYourLightsOn

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.