Commit 95bd53c6 authored by Cornee Traas's avatar Cornee Traas
Browse files

Adjust new account email

parent 8db72ab3
......@@ -47,7 +47,7 @@ class UserSerializer(serializers.ModelSerializer):
domain = current_site.domain
context = {
"domain": domain,
"domain": settings.FRONTEND_URL,
"site_name": site_name,
"user": user,
"token": default_token_generator.make_token(user),
......@@ -59,7 +59,9 @@ class UserSerializer(serializers.ModelSerializer):
"registration/password_reset_email.html", context
email_message = EmailMultiAlternatives(subject, body, to=[])
email_message = EmailMultiAlternatives(
subject, body, from_email="", to=[]
return user
......@@ -4,4 +4,4 @@ An account has been created for DASH-IT.
You can set a password to activate you account at the following link:
[link to frontend with password reset token]
<a href="{{domain}}resetpassword/{{token}}/{{}}">Click here to activate your account</a>
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