Hello, my app has seperate password reset and changed password confirmation emails.
These are both directed through the auth0 password change template.
I would like to be able to set a flag I can access within the template so I know whether it should be handled as a password reset or a password change.
Using user_metadata and app_metadata doesn’t seem appropriate. For example, with mailgun I have the ability to tag and send extra metadata on the email. This isn’t a direct comparison as I cannot script on mailgun itself but I can still pass that data through it using my app.
Do I have this kind of event-based flexibility with auth0 emails and how would I start?
Auth0 does not support a password changed confirmation email out of the box. If you are using MailGun as your provider, and have the ability to trigger emails directly through MailGun, you have the option to use the Authentication API Webhooks extension, configured for the Success Change Password log type. This could call an endpoint in your application (or on Webtask.io), which would trigger the email via MailGun.