Skip to content

Commit

Permalink
Feat: Add LoginSerializer to users/serializers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Jan 4, 2024
1 parent 0f5e87d commit 1aa0e2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/users/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ def create(self, validated_data):
password=validated_data["password"],
)
return user


class LoginSerializer(serializers.Serializer):
username = serializers.CharField()
password = serializers.CharField()

0 comments on commit 1aa0e2d

Please sign in to comment.