Talent-Catalog / talentcatalog

https://tctalent.org
GNU Affero General Public License v3.0
11 stars 4 forks source link

Cut-and-paste email address in candidate registraion can fail validation #578

Open sadatmalik opened 8 months ago

sadatmalik commented 8 months ago

From Hanine:

Please note that we're encountering an issue with multiple candidates attempting to register. They all receive the same message: "This field must contain a valid email." I've personally verified one candidate's email, and it is indeed correct. However, despite the validity of the email, she is unable to complete the registration process using it.

Slack Message

On further investigation the issue is caused by cut-and-paste of the email address into the registration field. Enhancing the regex validation would be useful to detect for such invisible characters, and to remove them.

samschlicht commented 7 months ago

Just confirming that the invisible character still causes the error. #669 is due to review the validation, so it might be worth considering these together.