Don't make phone a required field on contact form
parent
4db0dc467c
commit
d29a5246e4
|
|
@ -20,8 +20,8 @@ router.get("/",function(req,res){
|
||||||
|
|
||||||
router.post("/", function(req,res){
|
router.post("/", function(req,res){
|
||||||
console.log(req.body);
|
console.log(req.body);
|
||||||
if (!req.body.name || !req.body.email || !req.body.phone || !req.body.message){
|
if (!req.body.name || !req.body.email || !req.body.message){
|
||||||
res.status(400).json({"status":400,"message":"name, email, phone, and message are required fields in the body"});
|
res.status(400).json({"status":400,"message":"name, email, and message are required fields in the body"});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//This is the honeypot field
|
//This is the honeypot field
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
BUILD_ANGULAR_ARG=$1
|
BUILD_ANGULAR_ARG=$1
|
||||||
BUILD_ANGULAR=true
|
BUILD_ANGULAR=false
|
||||||
if [ "$BUILD_ANGULAR_ARG" = -ng ]; then
|
if [ "$BUILD_ANGULAR_ARG" = -ng ]; then
|
||||||
BUILD_ANGULAR=true
|
BUILD_ANGULAR=true
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue