From the course: React: Authentication (2021)
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Creating a reset password landing page - React.js Tutorial
From the course: React: Authentication (2021)
Creating a reset password landing page
- [Instructor] So now that our app is sending reset password emails to users who request them, the next step is going to be for us to define this landing page that users will be sent to when they click the link in the reset password email. Now, what this page is going to have to do is take the confirmation code that we're putting in the URL as a parameter, and then once the user enters their new password and confirmation password, we're going to make a request to the server and include this code in our request. So here's what all of this is going to look like. Let's go to our front-end folder here, and we're going to create a new page called the password reset landing page. So we'll create a new file for it, call it PasswordResetLandingPage.js, and just like with our email verification landing page, we're also going to create a password reset success and password reset failure components. So we'll say…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.