mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-01-27 13:03:12 -05:00
f73f2a762f
The ChallengeProvider trait provides the methods to be implemented by the challenge providers. The framework gets a challenge from a challenge provider, inserts the details of the challenge into the database, and gives the challenge to the user. It then gets the answer from the user, and sends it to the challenge provider for verification. This commit includes the implementation only for FilterChallenge provider.
21 lines
560 B
Scala
21 lines
560 B
Scala
import Dependencies._
|
|
|
|
lazy val root = (project in file(".")).
|
|
settings(
|
|
inThisBuild(List(
|
|
organization := "com.example",
|
|
scalaVersion := "2.12.3",
|
|
version := "0.1.0-SNAPSHOT")),
|
|
name := "LibreCaptcha",
|
|
libraryDependencies += scalaTest % Test,
|
|
|
|
libraryDependencies += "com.sksamuel.scrimage" %% "scrimage-core" % "2.1.8",
|
|
|
|
libraryDependencies += "com.sksamuel.scrimage" %% "scrimage-io-extra" % "2.1.8",
|
|
|
|
libraryDependencies += "com.sksamuel.scrimage" %% "scrimage-filters" % "2.1.8"
|
|
|
|
)
|
|
|
|
fork in run := true
|