mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-01-27 13:03:12 -05:00
renamed GifCaptcha to PoppingCharactersCaptcha
This commit is contained in:
parent
d81cf17a08
commit
c362ed5cb0
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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
|
||||||
|
@ -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")) ~
|
||||||
|
Loading…
x
Reference in New Issue
Block a user