How to send verification email if un-verified login attempted?

I’m trying to set up an action to automatically resend the verification email if an un-verified person tries to login. I found this article that does something similar using the old Rules syntax, but I can’t figure out how to update it to work with Actions.

Hi @mkstowe,

Welcome to the Auth0 Community!

I understand you are looking to send a verification email to unverified users whenever they log in.

Firstly, your current approach of using a Post-Login Action is the correct way to resend a verification email to unverified users.

In this situation, I recommend using the Management API in Actions to call the sendEmailVerification() method to send a verification email.

Please review the following documentation on using the Management API Actions

Here are the references to the Verification Email Job:

I hope this helps!

Please let me know if you have any questions or need help with implementation.

Thank you.

1 Like

That worked perfectly, thank you!

1 Like