How to change the default verification e-mail that users get when they are first added to a tenant, to the default reset password template ? Basically I want to switch the verification e-mail that a user gets first with the default reset password one. I am using the universal login experience. Is that possible and if so how ?
Thank you for reaching out to us!
I would say that for your use-case, you can implement the desired logic via a Post-user Registration Action to generate a Password Change ticket which you can then send to your users for them to change their password. Going in with this route, it is recommended to also setup a Custom SMTP Email provider instead of using the built-in Auth0 provider, as our standard one is mainly intended for testing purposes and not for production environments.
Allow me to share some useful documentations that can help with your integration:
- Sending Password Change Email for New Users;
- /api/v2/tickets/password-change;
- Want to create action where after user is created a change password email is sent to them;
- Force New User to Change Password on First Login.
This last doc goes over a slightly different flow, but I wanted to share it in case that approach makes more sense for your environment.
Please do not hesitate to reach out to us for any other issues or requests!
Have a great one!
Gerald
Thank you for your quick reply
I have one more question, if it’s not fit in here I can open a new thread. When someone resets their password they are not redirected to the desired URL defined in the template (Redirect To) ![]()
The main reason for this behaviour would be if you do not have a custom email provider set on your tenant, but you are trying to the Change Password Email Templates. Even if you have the template setup, it will not run with the default Auth0 provider.
We highly suggest configuring a Custom Email provider for added stability within production environments. I will reference the documentation I mentioned in my previous message, namely the Configure an Email Provider using SMTP Server Details - Auth0 Docs doc, that will hopefully allow you to correctly perform the redirect.
In addition, you can also check your tenant’s logs to see if you are getting any errors that might indicate the root cause of the issue.
Let me know if you already had a Custom Email provider setup and the issue is still ongoing.
Have a great one!
Gerald
Sorry for the late reply, yes I have a custom email provider set up that I have checked that works, but still the same issue ![]()