Password Reset Serializers

Learn how to create password reset serializers.

There are four steps to reset a user password:

  1. Implementing the serializer
  2. Implementing the password reset email
  3. Implementing the view
  4. Implementing the endpoint

This lesson focuses on implementing the serializer.

Create a serializer for a password reset

When users want to reset their password, they have to submit their email address so it can link the request to their account. In this lesson, we are creating a serializer to handle the email address provided by the user. Create a serializer class in serializers.py for email handling, like the one shown below.

Get hands-on with 1200+ tech skills courses.