Auth0 Home Blog Docs

ASP.Net Core 2.0: handling email_verified == false

login

#1

I am using your [ASP.NET Core 2.0 example code](https://github.com/auth0-samples/auth0-aspnetcore-mvc-samples/tree/master/Samples/oauth2] to authenticate users. I want to capture the error that the user has not verified their email address.

I have added the Scope “email” to your code in the OnCreatingTicket event, so I now have the email_verified property. But I don’t know how to redirect to a error handling action from inside the OnCreatingTicket event. Please could you advise me on the correct way to handle this error.