On Jul 11, 2008, at 6:25 AM, Grégory Joseph wrote:
Tom Duffey wrote:
Hi All,
I made a captcha module for Magnolia the other day using
JCaptcha. It's so ridiculously simple that I'm not sure it makes
sense to contribute because all it really does is register a
servlet that generates the captcha image, the rest is up to you.
There are several possible enhancements but this was all we needed
for now. Just thought I'd throw it out there in case anyone wants
to see it or thinks it should be contributed.
Tom,
If you pester me enough, I might be able to take some time, post
3.6, to setup a contributing environment (svn, jira, etc) on our
servers.
Sounds great, let me know if I can help.
On Jul 11, 2008, at 8:19 AM, Philippe Marschall wrote:
I'd would be cool if PUR would use that.
Should indeed be pretty easy to make these work together.
I haven't looked at PUR but all the captcha module really does is
register a servlet at /jcaptcha that responds with the image data and
registers the value in the session. On your form handler you are
responsible for testing the value submitted by the user against the
value stored in the session. There is a singleton that provides
access to a CaptchaService so you can retrieve the stored value. This
is all based on the 5-minute tutorial from JCatpcha docs:
http://forge.octo.com/jcaptcha/confluence/display/general/5+minutes+application+integration+tutorial
I might enhance this to include some additional configuration settings
(Managed inside the Magnolia admin central) for configuring the
captcha image properties, right now it just uses the defaults. If
used in a clustered environment it only works if you have sticky
sessions or a distributed CaptchaService.
Since there is some interest I will try to post the source +
instructions to the wiki this weekend.
In other news, we are also looking into creating an addon for making
Magnolia content location aware, i.e., contains latitude and longitude
information. Then I'd like to integrate Local Lucene or something
similar so we can search for content based on location!
Tom
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------