Hi all,

I hope this is the right forum for this question...

I've been trying to modify the MathCaptcha plugin (http://trac-
hacks.org/wiki/MathCaptchaPlugin) to insert the Captcha to every wiki/
ticket edit page, regardless of whether the user is anonymous or
authenticated (logged in). No matter what I do, the CAPTCHA does not
show up. I'm certain that I've installed the plugin correctly, as the
database schema is updated and Trac logs show the plugin loading.
Also, the plugin itself logs stuff to trac.log:

Trac[MathCaptcha] DEBUG: SELECT value FROM system WHERE
name='mathcaptcha_version'

I tried adding logging to is_validation_needed(self,req) method to see
if it ever reaches that point. My logging code looks like this

self.log.debug(req.authname)

I assume this should output "anonymous" if the user is not
authenticated, or else the user's username. However, nothing shows up
in the logs. I also tried removing all checks for "anonymous" user
(two in total)

Is somebody successfully using MathCaptcha plugin like this? My Trac
server has the following setup:

Debian Lenny (stable)
Trac 0.11.1
Apache 2.2.9
mod_python 3.3.1
Trac BASIC AUTH from LDAP using mod_authnz_ldap

Any ideas what might be wrong?

Samuli
_______________________________________________
th-users mailing list
[email protected]
https://lists.trac-hacks.org/mailman/listinfo/th-users

Reply via email to