VulcanJS / Vulcan

🌋 A toolkit to quickly build apps with React, GraphQL & Meteor
http://vulcanjs.org
MIT License
7.98k stars 1.88k forks source link

Respect "email" if set when creating users #2258

Closed eric-burel closed 5 years ago

eric-burel commented 5 years ago

If the email is provided on User creation, it seems that it is still overriden. We should respect the email field if it is provided by the user. (Note: this does not concern the emails, array which is tied to Meteor but the email field) https://github.com/VulcanJS/Vulcan/blob/devel/packages/vulcan-users/lib/modules/schema.js#L153

@juliensl: also an interesting first issue

eric-burel commented 5 years ago

Hi, sorry I reopen but actually I don't think #2282 actually solve this, it only improves the login form but here this issue arise while creating the user programatically in a callback, server-side

eric-burel commented 5 years ago

Seems to work ok.