Open Closed

API can-enable-two-factor not working as expected #8506


User avatar
0
nguyenngoc.son created

I have setup the 2FA at tenant level asOptinal, and the user can change when accessing the page My Account, the app is calling the API api/account/my-profile/can-enable-two-factor, for some users it return false and for some user it return true so user can not able to select their 2FA method

  • ABP Framework version: v8.3

5 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Because it's Optional for users, users can choose to enable or not enable,

    you can change it to forced

  • User Avatar
    0
    nguyenngoc.son created

    Hi, I'm understand that with the Optional, user can choose to enable or not, however right now user can not access the tab TwoFator to enable it

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Here is the logic, authentication must be available, The user's email or mobile phone number needs to be verified.

  • User Avatar
    0
    nguyenngoc.son created

    Hi, thank you for the confirmation

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    : )

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09