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.
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.