perf: 去掉登录页面更好

pull/7279/head
ibuler 2021-11-25 16:00:09 +08:00 committed by 老广
parent 7f0ad7e27f
commit 84bce19a92
1 changed files with 2 additions and 2 deletions

View File

@ -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: