From the course: ASP.NET MVC 5 Identity: Authentication and Authorization

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Email confirmation setup: SendGrid

Email confirmation setup: SendGrid

From the course: ASP.NET MVC 5 Identity: Authentication and Authorization

Start my 1-month free trial

Email confirmation setup: SendGrid

- [Instructor] To create an ASP.NET MVC 5 account, we go to the register button and here we provide some data and then we click Register. (keys clicking on keyboard) Now that our account was created we see that our ASP.NET MVC application automatically signs in the user. But it's a best practice to confirm the email of a new user registration to verify that they're not impersonating someone else. You generally want to prevent new users from posting any data to your web application before they have been confirmed by email or SMS text message or another mechanism. Let us first go to our database. We start the application in the Server Explorer, Data Connections, DefaultConnection. In the Tables folder we right click over the AspNetUsers table and then Show Table Data. So here we see the account that we just created and we see that the email confirm field has defaults value. On this part, we are going to see how we can enable email confirmation and we'll define the code to prevent newly…

Contents