Deny auth on failed requests

This commit is contained in:
Chris Blanchard 2015-08-18 11:40:15 +01:00
parent b31ca31c2b
commit e8de9f2498

View file

@ -46,7 +46,7 @@ module.exports = io => {
client.getUserById({
id: session.user
}, (error, response, body) => {
if (error) {
if (error || response.statusCode !== 200) {
winston.error(error);
return next(error)
};