mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-04-19 18:17:22 -04: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 captchaExpiryTimeLimitInt: Option[Int] = mapInt(captchaExpiryTimeLimit)
|
||||||
lazy val threadDelayInt: Option[Int] = mapInt(threadDelay)
|
lazy val threadDelayInt: Option[Int] = mapInt(threadDelay)
|
||||||
lazy val maxAttemptsRatioFloat: Option[Float] = mapFloat(maxAttemptsRatio)
|
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] = {
|
private def mapInt(x: Option[Integer]): Option[Int] = {
|
||||||
x.map(_ + 0)
|
x.map(_ + 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user