make login lockout duration configurable (#11699)
This commit is contained in:
parent
fc8fdbacb4
commit
e20161b3de
3 changed files with 8 additions and 1 deletions
|
|
@ -420,7 +420,7 @@ class AccountService:
|
|||
if count is None:
|
||||
count = 0
|
||||
count = int(count) + 1
|
||||
redis_client.setex(key, 60 * 60 * 24, count)
|
||||
redis_client.setex(key, dify_config.LOGIN_LOCKOUT_DURATION, count)
|
||||
|
||||
@staticmethod
|
||||
def is_login_error_rate_limit(email: str) -> bool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue