Skip to content
Snippets Groups Projects
Commit bef8bfa1 authored by Jonas Braathen's avatar Jonas Braathen
Browse files

Merge branch 'sponsor-confirm-emails' into 'master'

Only email sponsor when action is needed

See merge request !352
parents 3b3b11ab e5e7e850
No related branches found
No related tags found
1 merge request!352Only email sponsor when action is needed
Pipeline #161130 passed
...@@ -341,7 +341,8 @@ class InvitedGuestView(GenericAPIView): ...@@ -341,7 +341,8 @@ class InvitedGuestView(GenericAPIView):
invite_link.expire = timezone.now() invite_link.expire = timezone.now()
invite_link.save() invite_link.save()
# Send an email to the sponsor # Send an email to the sponsor if the guest needs to be verified
if not person.is_verified:
confirmmailer = ConfirmGuest() confirmmailer = ConfirmGuest()
confirmmailer.send_confirmation_mail_from_link(invite_link) confirmmailer.send_confirmation_mail_from_link(invite_link)
return Response(status=status.HTTP_200_OK) return Response(status=status.HTTP_200_OK)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment