mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 13:07:02 +00:00
refactor/change maxBadLoginAttempts to a method for dynamic retrieval
This commit is contained in:
parent
0c4bcba737
commit
be5254d934
@ -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 {
|
||||
|
||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user