mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-11-29 05:18:50 -05:00
@@ -10,6 +10,11 @@ import lc.captchas.interfaces.Challenge
|
||||
|
||||
class FilterChallenge extends ChallengeProvider {
|
||||
def getId = "FilterChallenge"
|
||||
|
||||
def configure(config: String): Unit = {
|
||||
// TODO: add custom config
|
||||
}
|
||||
|
||||
def returnChallenge(): Challenge = {
|
||||
val filterTypes = List(new FilterType1, new FilterType2)
|
||||
val r = new scala.util.Random
|
||||
|
||||
@@ -23,6 +23,10 @@ class LabelCaptcha extends ChallengeProvider {
|
||||
|
||||
def getId = "LabelCaptcha"
|
||||
|
||||
def configure(config: String): Unit = {
|
||||
// TODO: add custom config
|
||||
}
|
||||
|
||||
def returnChallenge(): Challenge =
|
||||
synchronized {
|
||||
val r = scala.util.Random.nextInt(knownFiles.length)
|
||||
|
||||
@@ -31,6 +31,10 @@ class RainDropsCP extends ChallengeProvider {
|
||||
|
||||
def getId = "FilterChallenge"
|
||||
|
||||
def configure(config: String): Unit = {
|
||||
// TODO: add custom config
|
||||
}
|
||||
|
||||
private def extendDrops(drops: Array[Drop], steps: Int, xOffset: Int) = {
|
||||
drops.map(d => {
|
||||
val nd = new Drop()
|
||||
|
||||
Reference in New Issue
Block a user