Hello there! I’m implementing the “change password” feature for users, and for that I use Auth0 management API to send an email address verification email. At the same time, I have the “Welcome email” turned on. And it turns out that that a welcome message is being sent after every confirmation. Which is absolutely fine when a user confirms email just after registration. But not when an existing user changes his/her email address. Is that possible to only limit sending a welcome message to, say, users with zero login count?
The welcome email will always send after a user verifies their email as standard. If you want to change this behaviour, you will need to toggle its status off in the Emails > Templates section, and implement a rule like demonstrated here:
That being said, if you just want to send the users a change password email, you can use one of following endpoints:
https://auth0.com/docs/api/authentication#change-password - this will send the user your current ‘change password’ email based on the template, provided they have an existing account tied to that email address (and they are a database connection user)
Or you can generate a password reset ticket to embed in an email of your own making, and send it outside of Auth0: https://auth0.com/docs/api/management/v2#!/Tickets/post_password_change
You can have this mark the user’s email as verified once the complete the password reset too using “mark_email_as_verified”: true, if needed.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.