mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-01-14 15:25:00 -05:00
minor, formatting
This commit is contained in:
parent
245521017a
commit
ab6abaf5c0
@ -18,12 +18,14 @@ class Captcha(throttle: Int) extends DBConn {
|
|||||||
stmt.execute("CREATE TABLE IF NOT EXISTS mapId(uuid varchar, token varchar, PRIMARY KEY(uuid), FOREIGN KEY(token) REFERENCES challenge(token))")
|
stmt.execute("CREATE TABLE IF NOT EXISTS mapId(uuid varchar, token varchar, PRIMARY KEY(uuid), FOREIGN KEY(token) REFERENCES challenge(token))")
|
||||||
stmt.execute("CREATE TABLE IF NOT EXISTS users(email varchar, hash int)")
|
stmt.execute("CREATE TABLE IF NOT EXISTS users(email varchar, hash int)")
|
||||||
|
|
||||||
val providers = Map("FilterChallenge" -> new FilterChallenge,
|
val providers = Map(
|
||||||
|
"FilterChallenge" -> new FilterChallenge,
|
||||||
"FontFunCaptcha" -> new FontFunCaptcha,
|
"FontFunCaptcha" -> new FontFunCaptcha,
|
||||||
"GifCaptcha" -> new GifCaptcha,
|
"GifCaptcha" -> new GifCaptcha,
|
||||||
"ShadowTextCaptcha" -> new ShadowTextCaptcha,
|
"ShadowTextCaptcha" -> new ShadowTextCaptcha,
|
||||||
"RainDropsCaptcha" -> new RainDropsCP,
|
"RainDropsCaptcha" -> new RainDropsCP,
|
||||||
"LabelCaptcha" -> new LabelCaptcha)
|
"LabelCaptcha" -> new LabelCaptcha
|
||||||
|
)
|
||||||
|
|
||||||
def getProvider(): String = {
|
def getProvider(): String = {
|
||||||
val random = new scala.util.Random
|
val random = new scala.util.Random
|
||||||
|
Loading…
Reference in New Issue
Block a user