Skip to content

Commit

Permalink
#109: adapt dummy patient in backend to frontend mock data
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolkenfarmer committed Mar 28, 2024
1 parent 865d8fa commit 9623162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/dps_training_k/game/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
class PatientAccessView(APIView):
def post(self, request, *args, **kwargs):
user, created = User.objects.get_or_create(
username="123"
username="123456"
) # Ensure the username is a string
if created:
user.set_password("123") # Properly hash the password
user.set_password("2") # Properly hash the password
user.save()

if not (request.data.get("exerciseId") and request.data.get("patientId")):
Expand Down

0 comments on commit 9623162

Please sign in to comment.