Bypass for authenticated members?
Up to Plone Captchas
I'm using Plone Captchas in conjunction with CoreBlog2 (comment forms) and it's working like a charm. However, I'd like have it so that authenticated members don't need to use the captcha -- for them, it shouldn't show up on the form and the validation should be by-passed. I'm not a hardcore programmer but I can follow directions very well
Any help would be greatly appreciated, thanks!
Cheers,
Darci
<div metal:define-macro="captcha"
tal:condition="not:isAnon"
or
<div metal:define-macro="captcha"
tal:condition="member"
This statement is actually the wrong way around: should be tal:condition="isAnon" - otherwise only authenticated members will get the captcha!
Previously Volodymyr Cherepanyak wrote:
You can customize the captcha_widget.pt template by adding to the first <div>.
<div metal:define-macro="captcha"
tal:condition="not:isAnon"
or
<div metal:define-macro="captcha"
tal:condition="member"
Apart from the ogic being the wrong way around, this breaks other integration points on form validators. In other words, you have skipped the prompt for a captcha but the form validators are still expecting one. If anyone has figured out the python script changes required to also skip form validation for authenticated members, please post here. Thanks.
Previously Volodymyr Cherepanyak wrote:
You can customize the captcha_widget.pt template by adding to the first <div>.
<div metal:define-macro="captcha"
tal:condition="not:isAnon"
or
<div metal:define-macro="captcha"
tal:condition="member"
