avoid exception in logging null user

This commit is contained in:
Brian Gough 2016-10-25 15:01:00 +01:00
parent 238e07ddde
commit bb06b97b3c

View file

@ -143,7 +143,7 @@ module.exports = UserController =
type:'success'
text:'Your password has been changed'
else
logger.log user: user, "current password wrong"
logger.log user_id: user_id, "current password wrong"
res.send
message:
type:'error'