reanahub / reana-server

REANA API server
http://reana-server.readthedocs.io/
MIT License
5 stars 37 forks source link

Regex in _validate_email is very picky. #422

Closed Debilski closed 2 years ago

Debilski commented 2 years ago

Email addresses with a dash fail with ERROR: Invalid email format, which is very confusing when running the create-admin-user script.

https://github.com/reanahub/reana-server/blob/4c986b2847f546ee3eaac3a1d752dd77a2ff4ed6/reana_server/utils.py#L435-L439

VMois commented 2 years ago

In addition, I can see that emails with two dots are not working either, e.g john.doe.poe@example.org.

VMois commented 2 years ago

Another finding, emails that may come from educational institutions (and similarly formatted) are not supported, e.g john.doe@edu.uni.ch.

audrium commented 2 years ago

Thanks @Debilski for spotting this issue! It's now fixed and will be included in the upcoming REANA 0.8.0 stable release which we are planning to release next week