minor, formatting

This commit is contained in:
hrj 2020-07-04 01:23:05 +05:30
parent 245521017a
commit ab6abaf5c0

View File

@ -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(
"FontFunCaptcha" -> new FontFunCaptcha, "FilterChallenge" -> new FilterChallenge,
"GifCaptcha" -> new GifCaptcha, "FontFunCaptcha" -> new FontFunCaptcha,
"ShadowTextCaptcha" -> new ShadowTextCaptcha, "GifCaptcha" -> new GifCaptcha,
"RainDropsCaptcha" -> new RainDropsCP, "ShadowTextCaptcha" -> new ShadowTextCaptcha,
"LabelCaptcha" -> new LabelCaptcha) "RainDropsCaptcha" -> new RainDropsCP,
"LabelCaptcha" -> new LabelCaptcha
)
def getProvider(): String = { def getProvider(): String = {
val random = new scala.util.Random val random = new scala.util.Random