renamed GifCaptcha to PoppingCharactersCaptcha

This commit is contained in:
hrj 2021-04-19 17:26:09 +05:30
parent d81cf17a08
commit c362ed5cb0
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ import lc.captchas.interfaces.ChallengeProvider;
import lc.misc.HelperFunctions; import lc.misc.HelperFunctions;
import lc.misc.GifSequenceWriter; 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 Font font = new Font("Arial", Font.ROMAN_BASELINE, 48);
private final int width = 250; private final int width = 250;
private final int height = 100; private final int height = 100;
@ -108,6 +108,6 @@ public class GifCaptcha implements ChallengeProvider {
} }
public String getId() { public String getId() {
return "GifCaptcha"; return "PoppingCharactersCaptcha";
} }
} }

View File

@ -9,7 +9,7 @@ object CaptchaProviders {
private val providers = Map( private val providers = Map(
"FilterChallenge" -> new FilterChallenge, "FilterChallenge" -> new FilterChallenge,
//"FontFunCaptcha" -> new FontFunCaptcha, //"FontFunCaptcha" -> new FontFunCaptcha,
"GifCaptcha" -> new GifCaptcha, "PoppingCharactersCaptcha" -> new PoppingCharactersCaptcha,
"ShadowTextCaptcha" -> new ShadowTextCaptcha, "ShadowTextCaptcha" -> new ShadowTextCaptcha,
"RainDropsCaptcha" -> new RainDropsCP, "RainDropsCaptcha" -> new RainDropsCP,
"DebugCaptcha" -> new DebugCaptcha "DebugCaptcha" -> new DebugCaptcha

View File

@ -65,7 +65,7 @@ object Config {
(AttributesEnum.CONFIG.toString -> JObject()) (AttributesEnum.CONFIG.toString -> JObject())
), ),
( (
(AttributesEnum.NAME.toString -> "GifCaptcha") ~ (AttributesEnum.NAME.toString -> "PoppingCharactersCaptcha") ~
(ParametersEnum.ALLOWEDLEVELS.toString -> List("hard")) ~ (ParametersEnum.ALLOWEDLEVELS.toString -> List("hard")) ~
(ParametersEnum.ALLOWEDMEDIA.toString -> List("image/gif")) ~ (ParametersEnum.ALLOWEDMEDIA.toString -> List("image/gif")) ~
(ParametersEnum.ALLOWEDINPUTTYPE.toString -> List("text")) ~ (ParametersEnum.ALLOWEDINPUTTYPE.toString -> List("text")) ~