摘要: 在用户登入时进行token的生成 // 登录router.post('/login', function (req, res) { User.find({ 'username': req.body.username }, function (err, data) { // 执行成功的时候 if (! 阅读全文
posted @ 2020-05-02 23:31 夜輩 阅读(234) 评论(0) 推荐(0)