1 31 32 package org.opencms.frontend.templateone.form; 33 34 import com.octo.captcha.service.captchastore.MapCaptchaStore; 35 import com.octo.captcha.service.image.AbstractManageableImageCaptchaService; 36 import com.octo.captcha.service.image.ImageCaptchaService; 37 38 48 public class CmsCaptchaService extends AbstractManageableImageCaptchaService implements ImageCaptchaService { 49 50 59 public CmsCaptchaService(CmsCaptchaSettings captchaSettings) { 60 61 super(new MapCaptchaStore(), new CmsCaptchaEngine(captchaSettings), 180, 100000, 75000); 62 } 63 64 65 66 76 protected void setSettings(CmsCaptchaSettings settings) { 77 78 CmsCaptchaEngine captchaEngine = (CmsCaptchaEngine)engine; 79 captchaEngine.setSettings(settings); 80 } 81 82 83 84 85 } 86 | Popular Tags |