mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-01-12 06:23:19 -05:00
fix #175: playgroundEnabled config option was not effective
This commit is contained in:
parent
7beecd7b80
commit
58c6e96dc9
@ -36,7 +36,7 @@ case class ConfigField(
|
||||
lazy val captchaExpiryTimeLimitInt: Option[Int] = mapInt(captchaExpiryTimeLimit)
|
||||
lazy val threadDelayInt: Option[Int] = mapInt(threadDelay)
|
||||
lazy val maxAttemptsRatioFloat: Option[Float] = mapFloat(maxAttemptsRatio)
|
||||
lazy val playgroundEnabledBool: Option[Boolean] = playgroundEnabled.map(_ || true)
|
||||
lazy val playgroundEnabledBool: Option[Boolean] = playgroundEnabled.map(_ || false)
|
||||
|
||||
private def mapInt(x: Option[Integer]): Option[Int] = {
|
||||
x.map(_ + 0)
|
||||
|
Loading…
Reference in New Issue
Block a user