Re: [openupload-devel] force captcha
Status: Beta
Brought to you by:
tsdogs
|
From: Alessandro B. <ts...@br...> - 2009-09-07 20:30:07
|
Hi,
openupload ha scritto:
> Hi List,
>
> Is there a easy way to force captcha usage for certain groups?
> I would like to make captchas required for files from unregistered users,
> and for registered optional.
>
You'll need to tweak the captcha template and change the checkbox into a
hidden value, in templates/default/plugins/captcha/uploadOptions.tpl
something like:
{if $user.login!=''}
<tr><td>{tr}Use Captcha{/tr}:</td><td><input type="checkbox"
name="captcha" value="1" checked></td></tr>
{else}
<input type="hidden" name="captcha" value="1">
{/if}
This would force the captcha on unregistered users.
> oh, and the same question for password protection.
>
Password needs some change to the plugin code to fail if the password is
empty. But this is more complex.
Right now they are optional.
Alessandro
|