From 962316259ef5f15a1f33834c29fb901d8aacac07 Mon Sep 17 00:00:00 2001 From: Wolkenfarmer Date: Thu, 28 Mar 2024 10:35:36 +0100 Subject: [PATCH] #109: adapt dummy patient in backend to frontend mock data --- backend/dps_training_k/game/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/dps_training_k/game/views.py b/backend/dps_training_k/game/views.py index d4d8787a..bd587844 100644 --- a/backend/dps_training_k/game/views.py +++ b/backend/dps_training_k/game/views.py @@ -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")):