From 0db69018e24da79c50f22776f89e953c33a98a14 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Thu, 29 May 2025 22:28:58 +0300 Subject: [PATCH] Fixes: 1) Correct key used to access password field in `compare_digest`. --- vibes_auth/viewsets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vibes_auth/viewsets.py b/vibes_auth/viewsets.py index ce13b17a..8cff1da1 100644 --- a/vibes_auth/viewsets.py +++ b/vibes_auth/viewsets.py @@ -69,7 +69,7 @@ class UserViewSet( try: serializer_data = ConfirmPasswordResetSerializer(request.data).data - if not compare_digest(data.get("password"), serializer_data.get("confirm_password")): + if not compare_digest(serializer_data.get("password"), serializer_data.get("confirm_password")): return Response( {"error": _("passwords do not match")}, status=status.HTTP_400_BAD_REQUEST,