remove redundant field in session information

This commit is contained in:
Sukchan Lee 2017-05-19 22:20:59 +09:00
parent 671854f2d7
commit 7612f2d1c1
1 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,10 @@ exports.configure = ({
where: { id: id },
include: [{ model: models.UserRole }]
}).then(user => {
done(null, user);
done(null, {
username: user.username,
role: user.UserRole.role
});
})
});