refactor/change maxBadLoginAttempts to a method for dynamic retrieval

This commit is contained in:
hongwei 2025-06-11 16:52:19 +02:00
parent 0c4bcba737
commit be5254d934
2 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import net.liftweb.util.Helpers._
object LoginAttempt extends MdcLoggable {
final val maxBadLoginAttempts = APIUtil.getPropsValue("max.bad.login.attempts") openOr "5"
def maxBadLoginAttempts = APIUtil.getPropsValue("max.bad.login.attempts") openOr "5"
def incrementBadLoginAttempts(provider: String, username: String): Unit = {
username.isEmpty() match {