Password Reset in REST API. Video tutorial.

If your mobile or web app allows the user to register and have an account with your project then you also need to let users recover their lost or forgotten password. And in this video tutorial, I am going to share with you a few videos that will help you implement Password Reset functionality in your RESTful Web Service application.

From the video tutorial below you will learn how to:

  • Create a Web service endpoint that receives a request for Password Reset,
  • Generate a unique password reset token with JWT library,
  • Email user a password reset email message using AWS SES(Amazon Simple Email Service),
  • Create an HTML page which allows the user to input their new password,
  • Create Web Service endpoint that accepts password rest token and a new password, then verifies if the password token has not expired and is still valid. And if all is good, updates user password in MySQL database using Spring Data JPA

These videos are from my video course: “RESTful Web Services, Java, Spring Boot, Spring MVC and JPA” which contains many more video lessons and I hope you will find them useful!

Password Reset in REST

1. Introduction

2. Password Reset Request Rest Controller Method

3. Service Method

4. Generate Request Token

5. Token Entity and JPA Repository Classes

6. AWS SES Java SDK to Send Email Message

7. Make the Password Reset Request URL Public

8. Trying How it Works

9. Password Reset HTML Page

10. Adding jQuery to HTML Page

11. The Javascript to Compare Passwords and Send HTTP AJAX Request

12. Add Content-Type HTTP Header

13. The Password Reset Rest Controller Method

14. The Service Method

15. Make Password Reset URL Public

16. Deploying Projects to Apache Tomcat

17. Trying how it works

Check the complete list of video lessons here: “RESTful Web Services, Java, Spring Boot, Spring MVC, and JPA

I hope this video tutorial was helpful to you!