Skip to content

Commit

Permalink
Feat: Remove email field from RegisterSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Jan 5, 2024
1 parent db66fff commit 3311663
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/users/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ class Meta:
fields = [
"username",
"password",
"email",
# "streak_count",
]
extra_kwargs = {"password": {"write_only": True}}

def create(self, validated_data):
user: User = User.objects.create(
username=validated_data["username"],
email=validated_data["email"],
streak_count=0,
)
user.set_password(validated_data["password"])
Expand Down

0 comments on commit 3311663

Please sign in to comment.