Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
copy change in the email sent on 'new account' creation to remove the link. Invites will be invitation-only to begin with.
  • Loading branch information
agentGav authored Oct 28, 2024
1 parent a24d10a commit 30ebf37
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cl8/users/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,15 +591,14 @@ def send_default_email(self, email):
subject = "Hello from Constellate!"
message = f"""
You are receiving this email because you, or someone else, tried to access an account with email {email}.
However, we do not have any record of such an account in our database.
However, we do not have any record of such an account in our systems.
This mail can be safely ignored if you did not initiate this action.
If it was you, you can sign up for an account using the link below.
If it was you, please contatc us and we can add you.
https://{current_site.domain}/accounts/signup/
Thank you for using Constellate!
Thank you!
"""

# Send the default email
Expand Down Expand Up @@ -646,4 +645,4 @@ def get_email_content(self, context):
return context["password_reset_content"] # Return the rendered HTML safely

def get_password_reset_url(self, context):
return context['password_reset_url']
return context['password_reset_url']

0 comments on commit 30ebf37

Please sign in to comment.