We do not send out invites on user creation

This commit is contained in:
Johannes Zellner
2019-01-23 17:18:37 +01:00
parent 47329eaebc
commit 7612e38695
2 changed files with 0 additions and 24 deletions

View File

@@ -203,8 +203,6 @@ function create(username, password, email, displayName, options, auditSource, ca
if (error && error.reason === DatabaseError.ALREADY_EXISTS) return callback(new UsersError(UsersError.ALREADY_EXISTS, error.message));
if (error) return callback(new UsersError(UsersError.INTERNAL_ERROR, error));
if (options.sendInvite) mailer.sendInvite(user, invitor);
// when this is used to create the owner, then we have to patch the auditSource to contain himself
if (isOwner) {
auditSource.userId = user.id;