Use a correct email regex, only @ il mendatory

This commit is contained in:
Alarig Le Lay 2019-05-06 11:09:39 +02:00
parent a11e511b7d
commit 04fb5ca175

View file

@ -92,8 +92,8 @@ fi
echo "INFO : Check USER_MAIL param format..."
# Check USER_MAIL
if [[ ! "${USER_MAIL}" =~ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ]]; then
echo 'ERROR : Email address is invalid'
if [[ ! "${USER_MAIL}" =~ ^(.*)+@(.*)$ ]]; then
echo 'ERROR: Email address is invalid'
exit 1
fi