Use a correct email regex, only @ il mendatory
This commit is contained in:
parent
a11e511b7d
commit
04fb5ca175
|
@ -92,7 +92,7 @@ fi
|
||||||
|
|
||||||
echo "INFO : Check USER_MAIL param format..."
|
echo "INFO : Check USER_MAIL param format..."
|
||||||
# Check USER_MAIL
|
# Check USER_MAIL
|
||||||
if [[ ! "${USER_MAIL}" =~ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ]]; then
|
if [[ ! "${USER_MAIL}" =~ ^(.*)+@(.*)$ ]]; then
|
||||||
echo 'ERROR: Email address is invalid'
|
echo 'ERROR: Email address is invalid'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue