Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix openid user can't login with face verify #14688

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Conversation

fit2bot
Copy link
Contributor

@fit2bot fit2bot commented Dec 19, 2024

fix: fix openid user can't login with face verify

@fit2bot fit2bot added the 🐛 Bug Something isn't working label Dec 19, 2024
@fit2bot fit2bot requested a review from a team December 19, 2024 02:58
@@ -35,7 +35,7 @@ def __call__(self, request):

# 这个是 mfa 登录页需要的请求, 也得放出来, 用户其实已经在 CAS/OIDC 中完成登录了
white_urls = [
'login/mfa', 'mfa/select', 'mfa/face','jsi18n/', '/static/',
'login/mfa', 'mfa/select', 'face/context','jsi18n/', '/static/',
'/profile/otp', '/logout/',
]
for url in white_urls:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the given code snippet, there's an issue with adding '/index/' to white_urls. The corrected code should be:

@@ -35,7 +35,7 @@def __call__(self, request):

     # 这个是 mfa 登录页需要的请求, 也得放出来, 用户其实已经在 CAS/OIDC 中完成登录了
     white_urls = [
       'login/mfa', 'mfa/select', 'mfa/face','jsi18n/', '/static/',
  •       'index/'
       ]
       for url in white_urls:
    

@Aaron3S Aaron3S merged commit e9abd1e into dev Dec 19, 2024
6 checks passed
@Aaron3S Aaron3S deleted the pr@dev@fix_face_openid branch December 19, 2024 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants