Skip to content

Commit

Permalink
Use DeathByCaptcha in Core
Browse files Browse the repository at this point in the history
  • Loading branch information
drallieiv committed Jul 8, 2023
1 parent 7b6fe70 commit 7923a19
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion KinanCity-captcha-deathbycaptcha/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>KinanCity-captcha-deathbycaptcha</artifactId>
<artifactId>kinancity-captcha-deathbycaptcha</artifactId>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down
6 changes: 6 additions & 0 deletions KinanCity-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
<artifactId>kinancity-captcha-anticaptcha</artifactId>
<version>2.1.11-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.kinancity</groupId>
<artifactId>KinanCity-captcha-deathbycaptcha</artifactId>
<version>2.1.11-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.kinancity</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.util.Properties;

import com.kinancity.core.captcha.captchaai.CaptchaaiCaptchaProvider;
import com.kinancity.core.captcha.deathByCaptcha.DeathByCaptchaProvider;
import org.apache.commons.lang.math.NumberUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -171,8 +172,8 @@ public void init() throws ConfigurationException {
providerThreadName = PROVIDER_CAPTCHAAI+"/"+PROVIDER_CAPSOLVER;
} else if (PROVIDER_DBC.equals(captchaProvider)) {
// Add imageTypers Provider
provider = CaptchaaiCaptchaProvider.getInstance(captchaQueue, captchaKey);
providerThreadName = PROVIDER_CAPTCHAAI+"/"+PROVIDER_CAPSOLVER;
provider = DeathByCaptchaProvider.getInstance(captchaQueue, captchaKey);
providerThreadName = "DeathByCaptcha";
} else {
throw new ConfigurationException("Unknown captcha provider " + captchaProvider);
}
Expand Down

0 comments on commit 7923a19

Please sign in to comment.