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

    Email verification not working with api

    Scheduled Pinned Locked Moved
    Q&A
    3
    8
    1.3k
    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.
    • J
      jogiprasadpakki
      last edited by

      I am used api to create users when i need to verify user email by api
      https://fusionauth.io/docs/v1/tech/apis/registrations#verify-a-user-registration
      not working.
      When application level verify email working, but verify tenent user with
      http://localhost:9011/api/user/verify-registration/si-R7tOTG5eFtiK1GUKJ4EOUUKIWah7sNHPvawJ8wYQ
      gives 404 code. i set X-FusionAuth-TenantId header also
      this is screen shot
      https://drive.google.com/file/d/1bpmv0L5zeDDixPe4hXcnX0ScJVxgsU3E/view?usp=sharing

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        Hiya,

        What version of FusionAuth are you using?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        J 2 Replies Last reply Reply Quote 0
        • J
          jogiprasadpakki @dan
          last edited by

          @dan
          Im using fusionauth 1.17.5

          1 Reply Last reply Reply Quote 0
          • J
            jogiprasadpakki @dan
            last edited by

            @dan
            Iam tested also in 1.18.5 same 404 error message

            1 Reply Last reply Reply Quote 0
            • J
              jogiprasadpakki
              last edited by

              I misunderstood there are two api for

              • One for verify application level email verify by
                https://fusionauth.io/docs/v1/tech/apis/registrations#verify-a-user-registration

              • Another for verify tenet level email verify api
                https://fusionauth.io/docs/v1/tech/apis/users#verify-a-users-email

              1 Reply Last reply Reply Quote 0
              • P
                peter.netbal
                last edited by

                Hi, I ran into a similar issue and I would like to know whats the best / recommended practice in this case:

                If you create a user and a registration you can verify the user email and/or verify the registration. If you verify the registration via email the user will still be "verified": false, but of course the registration will show "verified": true

                Is there a way to verify the user and the registration in one step (email), because a least in our use case it makes not much sense to send two emails which do pretty much the same thing.

                1 Reply Last reply Reply Quote 0
                • danD
                  dan
                  last edited by

                  @jogiprasadpakki are your concerns taken care of? Sorry for the confusion!

                  --
                  FusionAuth - Auth for devs, built by devs.
                  https://fusionauth.io

                  1 Reply Last reply Reply Quote 0
                  • danD
                    dan
                    last edited by

                    @peter-netbal

                    I would like to know whats the best / recommended practice in this case...

                    I'm a former consultant, so the answer is "it depends". It depends on how many applications you have and what you are using the verified attribute for.

                    There is no way to register the user and the registration in one step unless you send the emails outside of FusionAuth. You can of course update the user via the API to have verified true when someone verifies their registration, perhaps by listening to a webhook: https://fusionauth.io/docs/v1/tech/events-webhooks/events#user-registration-verified and with skipVerification set to true.

                    I also wonder why you need to have both the user object and the register object set the value of verified to true. Can you have your application read just one of those values? Or are you looking to have things consistent between the two objects?

                    --
                    FusionAuth - Auth for devs, built by devs.
                    https://fusionauth.io

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post