Skip to content

Commit

Permalink
fix(users): Use email from recently saved user instead of raw data
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-fx committed Oct 16, 2024
1 parent cc318cc commit b8781f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/leemons-plugin-users/backend/core/users/addBulk.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async function addUser({
await addCalendarToUserAgentsIfNeedByUser({ user: user.id, ctx });
}

await addUserInProvider({ user: { id: user.id, email: userData.email, password }, ctx });
await addUserInProvider({ user: { id: user.id, email: user.email, password }, ctx });

return user;
}
Expand Down

0 comments on commit b8781f8

Please sign in to comment.