Skip to content

Commit

Permalink
obtain request data
Browse files Browse the repository at this point in the history
  • Loading branch information
xinnie-ca committed Feb 24, 2024
1 parent 7663f5d commit f0d0ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lvlgg_backend/account/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def post(self, request):
create unsuccessful
200 - successful created a user
"""
data = json.loads(request.body.decode("utf-8"))
data = request.data
username = data.get("username")
password = data.get("password")
firstname = data.get("firstname")
Expand Down

0 comments on commit f0d0ce2

Please sign in to comment.