diff --git a/src/routes/support.js b/src/routes/support.js index 5b4395599..9e1a5665b 100644 --- a/src/routes/support.js +++ b/src/routes/support.js @@ -27,6 +27,7 @@ function createTicket(req, res, next) { if (typeof req.body.subject !== 'string' || !req.body.subject) return next(new HttpError(400, 'subject must be string')); if (typeof req.body.description !== 'string' || !req.body.description) return next(new HttpError(400, 'description must be string')); if (req.body.appId && typeof req.body.appId !== 'string') return next(new HttpError(400, 'appId must be string')); + if (req.body.altEmail && typeof req.body.altEmail !== 'string') return next(new HttpError(400, 'altEmail must be string')); appstore.createTicket(_.extend({ }, req.body, { email: req.user.email, displayName: req.user.displayName }), function (error) { if (error) return next(new HttpError(503, `Error contacting cloudron.io: ${error.message}. Please email ${custom.spec().support.email}`));