用bcryptjs ,参考地址 http://npm.taobao.org/package/bcryptjs
npm install bcryptjs
var bcrypt = require('bcryptjs');
npm install bcryptjs
var bcrypt = require('bcryptjs');
2016-05-09
如果你的版本是Express `4.x`, `5.0` and Connect `3.x`
将express改成session
将express改成session
2016-05-09
首先需要安装:
npm install --save connect-multiparty
把
app.use(express.multipart());
替换为
app.use(require('connect-multiparty')());
npm install --save connect-multiparty
把
app.use(express.multipart());
替换为
app.use(require('connect-multiparty')());
2016-05-08
最新回答 / 慕盖茨5004946
查看mongo就知道{"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"user":{"_id":"5742d3d0bf426b441d5a9efc","name":"admin","key":"$2a$10$Ov5hVYc1fSNkaYh0huakkeh9.RjmwnTAlJ49hur74rBoN01RKWfNq","__v":0,"meta":{"loginedIp":"","loginedAt":"...
2016-05-01