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
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

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

    you can change it to forced

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    nguyenngoc.son created

    Hi, thank you for the confirmation

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    : )

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.