Fixes: 1) Correct key used to access password field in compare_digest.
This commit is contained in:
parent
73b1e99dc1
commit
0db69018e2
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ class UserViewSet(
|
||||||
try:
|
try:
|
||||||
serializer_data = ConfirmPasswordResetSerializer(request.data).data
|
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(
|
return Response(
|
||||||
{"error": _("passwords do not match")},
|
{"error": _("passwords do not match")},
|
||||||
status=status.HTTP_400_BAD_REQUEST,
|
status=status.HTTP_400_BAD_REQUEST,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue