Send user_added email instead of generic user event to admins

Fixes #569
This commit is contained in:
Johannes Zellner
2016-01-20 12:40:54 +01:00
parent a4d32009ad
commit d61698b894
2 changed files with 20 additions and 4 deletions

View File

@@ -169,7 +169,7 @@ function createUser(username, password, email, displayName, admin, invitor, send
callback(null, user);
// WARNING do not send email for admins (this can only be the case for the owner, the first user creation during activation)
if (!admin) mailer.userAdded(user);
if (!admin) mailer.userAdded(user, sendInvite);
if (sendInvite) mailer.sendInvite(user, invitor);
});
});