From 39ebbfcf1072ec424ffc2887f864bd2d2cf73777 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Thu, 5 Sep 2024 16:12:44 +0800 Subject: [PATCH] perf: The locked ip shows the username --- apps/users/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/users/utils.py b/apps/users/utils.py index 006fbc3dd..bb9877a70 100644 --- a/apps/users/utils.py +++ b/apps/users/utils.py @@ -227,7 +227,7 @@ class MFABlockUtils(BlockUtilBase): class LoginIpBlockUtil(BlockGlobalIpUtilBase): LIMIT_KEY_TMPL = "_LOGIN_LIMIT_{}" - BLOCK_KEY_TMPL = "_LOGIN_BLOCK_{}" + BLOCK_KEY_TMPL = "_LOGIN_BLOCK_IP_{}" def validate_emails(emails):