From b61559d078fb4446945c964c2b48665a7966813b Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 25 Nov 2021 16:00:09 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=8E=BB=E6=8E=89=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9B=B4=E5=A5=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/middleware.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/authentication/middleware.py b/apps/authentication/middleware.py index 46aa46ded..9481c3ff6 100644 --- a/apps/authentication/middleware.py +++ b/apps/authentication/middleware.py @@ -21,8 +21,8 @@ class MFAMiddleware: # 这个是 mfa 登录页需要的请求, 也得放出来, 用户其实已经在 CAS/OIDC 中完成登录了 white_urls = [ - 'login/mfa', 'mfa/select', 'jsi18n/', '/static/', '/profile/otp', - '/logout/', '/login/' + 'login/mfa', 'mfa/select', 'jsi18n/', '/static/', + '/profile/otp', '/logout/', ] for url in white_urls: if request.path.find(url) > -1: