nus-cs2103-AY2021S2 / pe-dev-response

0 stars 0 forks source link

Email domain invalidity not checked #3132

Open nus-pe-bot opened 3 years ago

nus-pe-bot commented 3 years ago

As shown below, invalid domains for emails can easily be inputted as long as a @ is added.

image.png


[original: nus-cs2103-AY2021S2/pe-interim#3132] [original labels: severity.Low type.FunctionalityBug]

kingsleykuan commented 3 years ago

Team's Response

Thank you for your report, we understand your concern however we must reject this bug report as 123@123 is a valid email address according to the standard for email address format. The domain part of an email address can also be a local domain name with no TLD.

You may refer to the standard for email addresses here: https://tools.ietf.org/html/rfc5322#section-3.4.1 however we understand it can be hard to read and there are many other supporting documents to follow.

You can also view these discussions and pages: https://stackoverflow.com/questions/20573488/why-does-html5-form-validation-allow-emails-without-a-dot https://stackoverflow.com/questions/27992870/should-email-validation-requires-the-domain-part-contains-a-dot https://github.com/jquery-validation/jquery-validation/issues/2117 https://en.wikipedia.org/wiki/Email_address#Examples

image.png

Duplicate status (if any):

--