Skip to content
Snippets Groups Projects
Commit 3dc0ba27 authored by James Graham's avatar James Graham
Browse files

Modify email sent when user creates account #65

parent a78569c6
No related branches found
No related tags found
No related merge requests found
......@@ -34,5 +34,12 @@ def email_admins(strategy, details, backend, user=None, *args, **kwargs):
if kwargs['is_new']:
mail_admins(
subject='PEDASI Account Created',
message='Account created: {0}'.format(user.username)
message=(
'New PEDASI user account: {0}\n\n'
'A new user account has been created by {1} - {2} and requires admin approval'
).format(
user.username,
user.get_full_name(),
user.email
)
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment