mirror of https://github.com/jumpserver/jumpserver
feat: 添加 mfa middleware 白名单
parent
d9a9f890f5
commit
9cfe974c52
|
@ -35,7 +35,7 @@ class MFAMiddleware:
|
||||||
|
|
||||||
# 这个是 mfa 登录页需要的请求, 也得放出来, 用户其实已经在 CAS/OIDC 中完成登录了
|
# 这个是 mfa 登录页需要的请求, 也得放出来, 用户其实已经在 CAS/OIDC 中完成登录了
|
||||||
white_urls = [
|
white_urls = [
|
||||||
'login/mfa', 'mfa/select', 'jsi18n/', '/static/',
|
'login/mfa', 'mfa/select', 'mfa/face','jsi18n/', '/static/',
|
||||||
'/profile/otp', '/logout/',
|
'/profile/otp', '/logout/',
|
||||||
]
|
]
|
||||||
for url in white_urls:
|
for url in white_urls:
|
||||||
|
|
Loading…
Reference in New Issue