Personal tools
You are here: Home Forums Plone Captchas Bypass for authenticated members?
Document Actions

Bypass for authenticated members?

Up to Plone Captchas

Bypass for authenticated members?

Posted by darci hanning at February 18. 2007


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


Re: Bypass for authenticated members?

Posted by Volodymyr Cherepanyak at April 04. 2007
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"

Re: Bypass for authenticated members?

Posted by Barry Page at February 15. 2008

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"



 


Re: Bypass for authenticated members?

Posted by Barry Page at February 18. 2008

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"


 


Powered by Ploneboard