Fixed minor bug

This commit is contained in:
Jonas Schmedtmann
2019-06-14 16:52:42 +01:00
parent 7f81af0ddf
commit f6252a6759

View File

@@ -20,7 +20,7 @@ const createSendToken = (user, statusCode, req, res) => {
Date.now() + process.env.JWT_COOKIE_EXPIRES_IN * 24 * 60 * 60 * 1000
),
httpOnly: true,
secure: req.secure || req.headers('x-forwarded-proto') === 'https'
secure: req.secure || req.headers['x-forwarded-proto'] === 'https'
});
// Remove password from output