Closed jamiemonksuk closed 10 months ago
Security::honeypotSet()
Should probably use a return statement instead of directly echoing to match almost all our other sprout3 helpers. Other than that, all good.
@gwillz Happy to go ahead to merge this?
Yeah I reckon so, it's tried and tested.
If I were being pedantic, I don't enjoy that honeypotCheckOrDie()
doesn't actually die - it throws.
To be clear I don't like die()
either (I wish it would die) and I prefer exceptions any day. It's only the name is quite misleading.
Actually, the prefixing honeypot really screams that this should be in a Honeypot helper.
OK so this is all in a new helper, also added a twig helper. Everyone happy?
I like the don't tell anyone commit
Honeypot field name can optionally be overridden by a config honeypot.field_name if desired