Update login controller response.send

master
parent be4bd30fd2
commit 7b2a302452

@ -53,8 +53,7 @@ module.exports.loginUser = (request, response) => {
const token = auth.createAccessToken(result);
// return response.send({accessToken: token});
return response.send(true);
return response.send({accessToken: token});
}else{
return response.send(false);

Loading…
Cancel
Save