From 9cfe974c52b8ce187ad73c21780bb608a0f71116 Mon Sep 17 00:00:00 2001 From: Aaron3S Date: Wed, 20 Nov 2024 14:11:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20mfa=20middleware?= =?UTF-8?q?=20=E7=99=BD=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/middleware.py b/apps/authentication/middleware.py index d1f3b087b..64f8818a9 100644 --- a/apps/authentication/middleware.py +++ b/apps/authentication/middleware.py @@ -35,7 +35,7 @@ class MFAMiddleware: # 这个是 mfa 登录页需要的请求, 也得放出来, 用户其实已经在 CAS/OIDC 中完成登录了 white_urls = [ - 'login/mfa', 'mfa/select', 'jsi18n/', '/static/', + 'login/mfa', 'mfa/select', 'mfa/face','jsi18n/', '/static/', '/profile/otp', '/logout/', ] for url in white_urls: