chairemobilite / transition

Transition is a modern new approach to transit planning. It's a web application to model, simulate and plan public transit and alternative transportation.
http://transition.city
MIT License
20 stars 13 forks source link

sendEmail: Do not require userEmailData to have an id #836

Open tahini opened 5 months ago

tahini commented 5 months ago

This id is only used to display an error message when the email for the user does not exist. But in evolution, the user may actually be a participant and the message may be misinterpreted. The ID is otherwise not used.

The sendEmail function should receive an actual email (no possibly null or undefined values). Callers should make sure the user email is available (maybe using a helper function for this purpose)