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

bug: user not in built-in organization can not setup mfa #2631

Closed
zzzz0317 opened this issue Jan 20, 2024 · 7 comments · Fixed by #2647
Closed

bug: user not in built-in organization can not setup mfa #2631

zzzz0317 opened this issue Jan 20, 2024 · 7 comments · Fixed by #2647
Assignees
Labels
bug Something isn't working

Comments

@zzzz0317
Copy link
Contributor

zzzz0317 commented Jan 20, 2024

I create a new organization, and unable to set up MFA by myself. I can only set up SMS and email types of MFA on the administrator page. The APP type requires scanning a QR code, which cannot be configured by the administrator. When users try to configure MFA on their own, none of the three types of MFA are displayed correctly on the frontend interface. However, by using the Network tab in F12, it is possible to see that the API is functioning properly.

image

@casbin-bot
Copy link
Contributor

@casbin-bot casbin-bot added the bug Something isn't working label Jan 20, 2024
@leo220yuyaodog
Copy link
Member

@zzzz0317 I follow your steps create a new organization and a user. The use can setup MFA itself. I'm not sure what casues the bug you showed, you can see the video to check it.

QQ2024120-223436.mp4

@zzzz0317
Copy link
Contributor Author

image
image

I found that this value is empty, and after I assigned an app to this account, the problem was solved.
I don't know why this value is empty. When I create an empty account, it uses "app-built-in" as the default app, but "app-built-in" does not belong to my new organization.

@zzzz0317
Copy link
Contributor Author

image
image

And after I set up an MFA, the setup button is missing on my account page, but when I set up another MFA, the MFA method that has already been set up appears on the MFA setup page.

@hsluoyz
Copy link
Member

hsluoyz commented Jan 27, 2024

@zzzz0317 can you provide demo video about "And after I set up an MFA, the setup button is missing on my account page, but when I set up another MFA, the MFA method that has already been set up appears on the MFA setup page." ?

@hsluoyz
Copy link
Member

hsluoyz commented Jan 27, 2024

@zzzz0317

When I create an empty account, it uses "app-built-in" as the default app, but "app-built-in" does not belong to my new organization.

Fixed by: 104f975

@leo220yuyaodog
Copy link
Member

And after I set up an MFA, the setup button is missing on my account page, but when I set up another MFA, the MFA method that has already been set up appears on the MFA setup page.

It seems that you are confused by how the UI behaves differently in these two places. In fact, I expected to be able to override the previous configuration after setting it, but it didn't show up in the user page. I will fix it by add an edit button in the user page.

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 a pull request may close this issue.

4 participants