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

The mfa is not work in My Acount page #2823

Closed
wxytjustb opened this issue Mar 19, 2024 · 9 comments
Closed

The mfa is not work in My Acount page #2823

wxytjustb opened this issue Mar 19, 2024 · 9 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@wxytjustb
Copy link

Accessing My Account Page
image

Select App Setup
image

Veify Password
image

No further action
image

When I use admin account to check this user, there is no button for type app.
image

How can I configure the app-based MFA?

@casbin-bot
Copy link
Contributor

@casbin-bot casbin-bot added the question Further information is requested label Mar 19, 2024
@leo220yuyaodog
Copy link
Member

@wxytjustb The admin can not set app type mfa for user. It's need user itself use his device to generate the secrect.

@wxytjustb
Copy link
Author

wxytjustb commented Mar 20, 2024

@wxytjustb The admin can not set app type mfa for user. It's need user itself use his device to generate the secrect.

Thank you for your reply.
My Account Page is the user's own personal settings page. The screenshot I sent is what the user sees, not the admin's page.
As a regular user, when I set up any type of MFA, nothing happens.

After entering the verification password, I expected the image below to appear, but it did not.
image

I use the latest casdoor version.

@hsluoyz
Copy link
Member

hsluoyz commented Mar 20, 2024

@wxytjustb can you post your browser console logs? (F12)

@wxytjustb
Copy link
Author

wxytjustb commented Mar 21, 2024

@wxytjustb can you post your browser console logs? (F12)

@hsluoyz

console logs
image

network logs
image

/api/mfa/setup/initiate request
image

/api/mfa/setup/initiate response
image

@hsluoyz
Copy link
Member

hsluoyz commented Mar 22, 2024

@wxytjustb I tried and it worked. Go to demo site: https://demo.casdoor.com/login/casbin , login with username: test and password: 123. The QR code showed up. So this is your own issue.

image

@hsluoyz hsluoyz closed this as completed Mar 22, 2024
@hsluoyz hsluoyz added invalid This doesn't seem right and removed question Further information is requested labels Mar 22, 2024
@SAMOXA
Copy link

SAMOXA commented Jul 24, 2024

Same probem. Email and SMS also not showing.
If user is not admin all work fine.
Admin user can`t set 2FA/MFA for itself account.

@hsluoyz hsluoyz reopened this Jul 24, 2024
@dacongda
Copy link
Contributor

dacongda commented Jul 24, 2024

Same probem. Email and SMS also not showing. If user is not admin all work fine. Admin user can`t set 2FA/MFA for itself account.

fail to reproduce, can you tell me how to do to reproduce this bug?

@hsluoyz
Copy link
Member

hsluoyz commented Jul 24, 2024

@SAMOXA next time, provide detailed reproduce steps on demo site or self-hosted, provide demo video

This issue will be closed here

@hsluoyz hsluoyz closed this as completed Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

6 participants