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: