diff --git a/profiles/social_auth.py b/profiles/social_auth.py index bde0c5e286ea346d6552e128212e1dd8a4bf02b7..453f75f90a4d408059b6f123550622842d68cb99 100644 --- a/profiles/social_auth.py +++ b/profiles/social_auth.py @@ -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 + ) )