From 0184d292ec315e147c36bf142b5f7d01ce9a9e3e Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Thu, 9 Oct 2025 14:27:32 +0800 Subject: [PATCH] perf: MFA code --- apps/authentication/mfa/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/mfa/base.py b/apps/authentication/mfa/base.py index 9a2e0198f..bf936e798 100644 --- a/apps/authentication/mfa/base.py +++ b/apps/authentication/mfa/base.py @@ -38,7 +38,7 @@ class BaseMFA(abc.ABC): if not ok: return False, msg - cache.set(cache_key, code, 60) + cache.set(cache_key, code, settings.VERIFY_CODE_TTL) return True, msg def is_authenticated(self):