feat: 添加 mfa middleware 白名单

pull/14494/head
Aaron3S 2024-11-20 14:11:29 +08:00 committed by Bryan
parent d9a9f890f5
commit 9cfe974c52
1 changed files with 1 additions and 1 deletions

View File

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