Duke-GCB / D4S2

Web service to facilitate notification and transfer of projects in DukeDS
MIT License
0 stars 0 forks source link

Derive emails from username when not present #233

Closed johnbradley closed 4 years ago

johnbradley commented 4 years ago

Some users do not have email addresses listed in DukeDS affiliates and users endpoints. For those users an email address can be created based on the username. Changes here create an email address from username when the email address field is empty and the D4S2_USERNAME_EMAIL_HOST env variable is set.

This should fix https://github.com/Duke-GCB/datadelivery-ui/issues/64