Skip to content
Snippets Groups Projects
Commit 532cb252 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Merge branch 'fix-mailregister' into 'master'

Connect email to person on account registration. Closes #44

Closes #44

See merge request !39
parents dc3c2c8c ae055d22
No related branches found
No related tags found
1 merge request!39Connect email to person on account registration. Closes #44
Pipeline #105407 canceled
......@@ -347,6 +347,7 @@ class AccountRegisterWizardView(SessionWizardView):
cleaned_data_register = self.get_cleaned_data_for_step("register")
# Create email address
_email = None
if cleaned_data_email:
_email = MailAddress.objects.create(
local_part=cleaned_data_email["local_part"],
......@@ -374,6 +375,10 @@ class AccountRegisterWizardView(SessionWizardView):
},
)
if _email:
_email.person = person
_email.save()
return redirect("index")
......
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