Skip to content

Commit

Permalink
fix(headless): APIResponse(status=500) missing request
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Oct 31, 2024
1 parent 6c9937e commit 4d7decc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions allauth/headless/account/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ def post(self, request, *args, **kwargs):
if not email_address:
# Should not happen, VerifyInputInput should have verified all
# preconditions.
return APIResponse(status=500)
return APIResponse(request, status=500)
if self.stage:
# Verifying email as part of login/signup flow, so emit a
# authentication status response.
self.stage.exit()
return AuthenticationResponse(self.request)
return AuthenticationResponse(request)


class RequestPasswordResetView(APIView):
Expand Down

0 comments on commit 4d7decc

Please sign in to comment.