fix: Welcome emails should not be sent when inviting a user (#2132)

* chore: Bump nodemailer

* fix: Welcome email sent to invites

* test: Add regression test for emails from accountProvisioner
This commit is contained in:
Tom Moor
2021-05-11 18:59:31 -07:00
committed by GitHub
parent 456a7e497b
commit 2cb0bab82a
7 changed files with 27 additions and 12 deletions

View File

@ -117,7 +117,7 @@ export default async function userCreator({
throw err;
}
return { user: invite, authentication: auth, isNewUser: false };
return { user: invite, authentication: auth, isNewUser: true };
}
// No auth, no user this is an entirely new sign in.