今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Rewriting the reset password endpoint
- [Instructor] Okay! The next step here is going to be to modify the resetPassword endpoint. And in this case, just like with the email verification flow, Cognito is going to be sending the user a six-digit verification code instead of a link, as we had it before. And we can actually verify this by checking our email and we'll see that we just got an email from that little test we did with a six-digit verification code. So, the next step now is to rewrite the resetPassword endpoint, that will basically take care of verifying that code and resetting the user's password if it's correct. So, on our backend here let's open up our resetPassword endpoint and here is what the changes are going to look like. So, just like before, we no longer are going to need bcrypt and we're not even going to need a connection to our database anymore, since Cognito again, is going to be taking care of that for us. And we're going to import…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
-
-
(已锁定)
Amazon Cognito basics4 分钟
-
(已锁定)
Setting up an AWS Cognito project7 分钟 39 秒
-
(已锁定)
Creating a user pool in Node.js5 分钟 28 秒
-
(已锁定)
Converting the sign-up endpoint to AWS6 分钟 33 秒
-
(已锁定)
Converting the sign-up page to AWS1 分钟 59 秒
-
(已锁定)
Modifying the email verification flow9 分钟 29 秒
-
(已锁定)
Converting the verify email route6 分钟 32 秒
-
(已锁定)
Converting the login route5 分钟 22 秒
-
(已锁定)
Converting the forgot password route4 分钟 16 秒
-
(已锁定)
Rewriting the reset password endpoint3 分钟 3 秒
-
(已锁定)
Converting the reset password page4 分钟 22 秒
-
(已锁定)
-
-