Commit 3aaaf0c1 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

debug email confirmation enregistrement

parent 138ed49d
......@@ -25,12 +25,12 @@ def register(request):
messages.success(request, f'Votre compte a été créé !')
print("Préparation envoi email")
template = render_to_string('emails/register_confirmation.html', {'name':request.user.username})
template = render_to_string('emails/register_confirmation.html', {'name':form.cleaned_data.get('username')})
email = EmailMessage(
'Confirmation de création de compte PhonoGraphe',
template,
settings.EMAIL_HOST_USER,
[request.user.email, "sylvain.coulange@univ-grenoble-alpes.fr"],
[form.cleaned_data.get('email'), "contact@alem-app.fr"],
)
email.fail_silently = False
email.send()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment