Restore the userCreated event

This commit is contained in:
Wyatt Johnson
2018-03-12 16:39:38 -06:00
parent 2f5fc03e9c
commit f826db1edf
22 changed files with 176 additions and 120 deletions
+7 -1
View File
@@ -318,7 +318,13 @@ module.exports = {
let user;
try {
user = await UsersService.findOrCreateExternalUser(profile);
const { id, provider, displayName } = profile;
user = await UsersService.findOrCreateExternalUser(
req.context,
id,
provider,
displayName
);
} catch (err) {
return done(err);
}