Email verification not working with api
-
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 -
Hiya,
What version of FusionAuth are you using?
-
@dan
Im using fusionauth 1.17.5 -
@dan
Iam tested also in 1.18.5 same 404 error message -
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
-
-
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.
-
@jogiprasadpakki are your concerns taken care of? Sorry for the confusion!
-
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
totrue
. Can you have your application read just one of those values? Or are you looking to have things consistent between the two objects?