ft_transcendence/accounts/serializers/change_password.py

7 lines
178 B
Python

from rest_framework.serializers import Serializer, CharField
class ChangePasswordSerializer(Serializer):
current_password = CharField()
new_password = CharField()