• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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 7 Aug 2020, 20:20

    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
    • D
      dan
      last edited by 7 Aug 2020, 20:42

      Hiya,

      What version of FusionAuth are you using?

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

      J 2 Replies Last reply 8 Aug 2020, 04:22 Reply Quote 0
      • J
        jogiprasadpakki @dan
        last edited by 8 Aug 2020, 04:22

        @dan
        Im using fusionauth 1.17.5

        1 Reply Last reply Reply Quote 0
        • J
          jogiprasadpakki @dan
          last edited by 8 Aug 2020, 12:21

          @dan
          Iam tested also in 1.18.5 same 404 error message

          1 Reply Last reply Reply Quote 0
          • J
            jogiprasadpakki
            last edited by 8 Aug 2020, 16:51

            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 10 Aug 2020, 13:13

              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
              • D
                dan
                last edited by 10 Aug 2020, 14:42

                @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
                • D
                  dan
                  last edited by 10 Aug 2020, 14:48

                  @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
                  2 out of 8
                  • First post
                    2/8
                    Last post