From c362ed5cb003c80347ef79cfb4b0eb7323e10b8d Mon Sep 17 00:00:00 2001 From: hrj Date: Mon, 19 Apr 2021 17:26:09 +0530 Subject: [PATCH] renamed GifCaptcha to PoppingCharactersCaptcha --- .../{GifCaptcha.java => PoppingCharactersCaptcha.java} | 4 ++-- src/main/scala/lc/core/captchaProviders.scala | 2 +- src/main/scala/lc/core/config.scala | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/main/java/lc/captchas/{GifCaptcha.java => PoppingCharactersCaptcha.java} (97%) diff --git a/src/main/java/lc/captchas/GifCaptcha.java b/src/main/java/lc/captchas/PoppingCharactersCaptcha.java similarity index 97% rename from src/main/java/lc/captchas/GifCaptcha.java rename to src/main/java/lc/captchas/PoppingCharactersCaptcha.java index 7a79036..4ce15b4 100644 --- a/src/main/java/lc/captchas/GifCaptcha.java +++ b/src/main/java/lc/captchas/PoppingCharactersCaptcha.java @@ -19,7 +19,7 @@ import lc.captchas.interfaces.ChallengeProvider; import lc.misc.HelperFunctions; import lc.misc.GifSequenceWriter; -public class GifCaptcha implements ChallengeProvider { +public class PoppingCharactersCaptcha implements ChallengeProvider { private final Font font = new Font("Arial", Font.ROMAN_BASELINE, 48); private final int width = 250; private final int height = 100; @@ -108,6 +108,6 @@ public class GifCaptcha implements ChallengeProvider { } public String getId() { - return "GifCaptcha"; + return "PoppingCharactersCaptcha"; } } diff --git a/src/main/scala/lc/core/captchaProviders.scala b/src/main/scala/lc/core/captchaProviders.scala index 8a61841..eda74f0 100644 --- a/src/main/scala/lc/core/captchaProviders.scala +++ b/src/main/scala/lc/core/captchaProviders.scala @@ -9,7 +9,7 @@ object CaptchaProviders { private val providers = Map( "FilterChallenge" -> new FilterChallenge, //"FontFunCaptcha" -> new FontFunCaptcha, - "GifCaptcha" -> new GifCaptcha, + "PoppingCharactersCaptcha" -> new PoppingCharactersCaptcha, "ShadowTextCaptcha" -> new ShadowTextCaptcha, "RainDropsCaptcha" -> new RainDropsCP, "DebugCaptcha" -> new DebugCaptcha diff --git a/src/main/scala/lc/core/config.scala b/src/main/scala/lc/core/config.scala index d1769c2..1ada43f 100644 --- a/src/main/scala/lc/core/config.scala +++ b/src/main/scala/lc/core/config.scala @@ -65,7 +65,7 @@ object Config { (AttributesEnum.CONFIG.toString -> JObject()) ), ( - (AttributesEnum.NAME.toString -> "GifCaptcha") ~ + (AttributesEnum.NAME.toString -> "PoppingCharactersCaptcha") ~ (ParametersEnum.ALLOWEDLEVELS.toString -> List("hard")) ~ (ParametersEnum.ALLOWEDMEDIA.toString -> List("image/gif")) ~ (ParametersEnum.ALLOWEDINPUTTYPE.toString -> List("text")) ~