Don’t need to return anything besides the token

This commit is contained in:
Matthew Dillon 2015-04-22 10:09:30 -08:00
parent 43295ca63f
commit 238b5fdd52
2 changed files with 17 additions and 7 deletions

View file

@ -52,11 +52,10 @@ module.exports = function(app) {
{
expiresInMinutes: 60,
issuer: 'bactdb',
subject: 'test',
subject: user.id,
});
res.send({
'token': token,
'user_id': user.id,
'token': token
});
} else {
res.status(401).send({'error':'Invalid username or password'});