Using passport and bcrypt to log users in

前端 未结 0 1251
粉色の甜心
粉色の甜心 2020-12-04 11:19

The code:

async function getSingleUser(req, res) {
const users = await models.User.findOne({ where: { id: req.params.id } });
res.json(users)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题