课程: React: Authentication

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Converting the reset password page

Converting the reset password page - React.js教程

课程: React: Authentication

Converting the reset password page

- [Instructor] All right. We've come to the final step now of our Cognito Integration, and that is to convert our front end to use the new Cognito Reset Password Flow. So here's what we need to do for that. The first thing is, as you've seen the route that we're sending the user to currently doesn't have a corresponding page, although what we want to do is have that simply be the existing password reset landing page. So let's go to our routes file, go down here to reset password. And instead of having the password reset code be included like that, we're just going to delete that. And now we'll see that the reset password page shows up. And furthermore up at the top here, we have the email query parameter that we'll be using to send to the server. So other than that, really the only thing we have to do is add another input to this page, where the user can enter the confirmation code that they've received from AWS.…

内容