Skip to content

Commit

Permalink
Ensure customer_signed_in signal is fired for popup login (#3835)
Browse files Browse the repository at this point in the history
In a7f7c64, a `customer_signed_in` in signal was introduced. However,
when a user currently logs in using a popup, the signal is not fired.
This commit resolves this.
  • Loading branch information
kiancross committed Jan 25, 2024
1 parent 645c9d5 commit f9f6292
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pretix/presale/views/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,8 @@ def get(self, request, *args, **kwargs):
popup_origin
)

customer_signed_in.send(customer.organizer, customer=customer)

if popup_origin:
return render(self.request, 'pretixpresale/postmessage.html', {
'message': {
Expand All @@ -839,7 +841,6 @@ def get(self, request, *args, **kwargs):
})
else:
customer_login(self.request, customer)
customer_signed_in.send(customer.organizer, customer=customer)
return redirect_to_url(self.get_success_url(redirect_to))

def _fail(self, message, popup_origin):
Expand Down

0 comments on commit f9f6292

Please sign in to comment.