Author: xor Date: 2008-11-16 04:36:10 +0000 (Sun, 16 Nov 2008) New Revision: 23634
Modified: trunk/plugins/WoT/introduction/captcha/CaptchaFactory1.java Log: Move comment into the right place. Modified: trunk/plugins/WoT/introduction/captcha/CaptchaFactory1.java =================================================================== --- trunk/plugins/WoT/introduction/captcha/CaptchaFactory1.java 2008-11-16 04:14:03 UTC (rev 23633) +++ trunk/plugins/WoT/introduction/captcha/CaptchaFactory1.java 2008-11-16 04:36:10 UTC (rev 23634) @@ -25,25 +25,21 @@ /** * First implementation of a captcha factory. * I added a "1" to the class because we should probably have many different captcha generators. - * I suggest we use this one for the first implementation: - * http://simplecaptcha.sourceforge.net/ + * + * Based on http://code.google.com/p/kaptcha/ * - * If anyone knows a better library than simplecaptcha please comment. - * * @author xor * */ public class CaptchaFactory1 implements IntroductionPuzzleFactory { public IntroductionPuzzle generatePuzzle(ObjectContainer db, OwnIdentity inserter) throws IOException { - ByteArrayOutputStream out = new ByteArrayOutputStream(10 * 1024); + ByteArrayOutputStream out = new ByteArrayOutputStream(10 * 1024); /* TODO: find out the maximum size of the captchas and put it here */ try { DefaultKaptcha captcha = new DefaultKaptcha(); captcha.setConfig(new Config(new Properties())); String text = captcha.createText(); BufferedImage img = captcha.createImage(text); - /* TODO: find out the maximum size of the captchas and put it here */ - ImageIO.write(img, "jpg", out); Date dateOfInsertion = new Date(); _______________________________________________ cvs mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
