make login lockout duration configurable (#11699)
This commit is contained in:
parent
fc8fdbacb4
commit
e20161b3de
3 changed files with 8 additions and 1 deletions
|
|
@ -485,6 +485,11 @@ class AuthConfig(BaseSettings):
|
|||
default=60,
|
||||
)
|
||||
|
||||
LOGIN_LOCKOUT_DURATION: PositiveInt = Field(
|
||||
description="Time (in seconds) a user must wait before retrying login after exceeding the rate limit.",
|
||||
default=86400,
|
||||
)
|
||||
|
||||
|
||||
class ModerationConfig(BaseSettings):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue