FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    (FusionAuth 1.41.0) How to Update the Password Reset Functionality for Users that Have Two-Factor On?

    Scheduled Pinned Locked Moved Unsolved Q&A
    2 Posts 2 Posters 1.6k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pedroparente
      last edited by

      My issue is very similar to the one encountered in this post:
      https://fusionauth.io/community/forum/topic/1720/fusionauth-1-33-0-update-how-to-update-the-password-reset-functionality-for-users-that-have-two-factor-on

      In short, I'm trying to change a password for a user that has two factor enabled by doing the flow detailed in the docs. I send a start two factor request where I get a code and twoFactorId, I send a login request with these fields thus obtaining a trustToken. But when attempting the change password request I get the following error:

      {
        "generalErrors" : [ {
          "code" : "[TrustTokenRequired]",
          "message" : "This request requires a Trust Token. Use the Start Two-Factor API to obtain a Trust Token required to complete this request."
        } ]
      }
      

      I even tried the workaround of sending the trust challenge together with the trustToken, but still im getting the error. Any ideas?

      mark.robustelliM 1 Reply Last reply
      Reply Quote 0
      • mark.robustelliM
        mark.robustelli @pedroparente
        last edited by

        @pedroparente You may try need to update the version of FusionAuth. Seems like it could be related to this issue. https://github.com/FusionAuth/fusionauth-issues/issues/1909 which was fixed in 1.43.0.

        1 Reply Last reply
        Reply Quote 0
        • danD dan moved this topic from Q&A on
        • danD dan moved this topic from Frequently Asked Questions (FAQ) on

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post