Hold-Krykke / Security_and_FullstackJavascript_Exam

4. Semester Security og Fullstack Javascript Eksamens Projekt
0 stars 0 forks source link

Validate e-mail regex fixed #47

Closed Castau closed 4 years ago

Castau commented 4 years ago

I fixed the regex in the validateEmail(). I chose a fairly long and complicated regex that is RFC 5322 compliant regex (whatecer that is :P ) found here on stackoverflow: https://stackoverflow.com/a/201378.

I thought about making something more simple, but I'm unsure about how little we can check for, while not leaving our database vulnerable, so i kept this one for now.