bcrypt使用报错-No callback function was given
来源:互联网 发布:地暖品牌 知乎 编辑:程序博客网 时间:2024/06/07 07:01
使用bcrypt时遇到的报错
throw "No callback function was given".No Callback function was given
bcrypt.hash()需要4个参数,
hash(data, salt, progress, cb)The documentation is unclear on this: it states that
data
, salt
and cb
are required, which implies that progress
isn't, but without it you'll get the error.Pass a
null
if you don't care about tracking progress:bcrypt.hash(user.password, salt, null, function (err, hash) { ... })
6down vote
bcrypt.hash()
requires 4 arguments:
hash(data, salt, progress, cb)
The documentation is unclear on this: it states that data
, salt
and cb
are required, which implies that progress
isn't, but without it you'll get the error.
Pass a null
if you don't care about tracking progress:
bcrypt.hash(user.password, salt, null, function (err, hash) { ... })
0 0
- bcrypt使用报错-No callback function was given
- 安装flask-bcrypt报错
- 关于使用Hibernate出现报错No row with the given identifier exists:
- npm install bcrypt 报错,windows
- Windows node bcrypt安装报错
- no row with the given identifier exists报错
- bcrypt使用
- Hibernate 级联查询: More than one row with the given identifier was found 报错
- Unity打包报错the given key was not present in the dictionary
- no row with the given identifier was found: 200
- 安装bcrypt报错node-gyp rebuild解决方法
- 安装bcrypt报错node-gyp rebuild解决方法
- Flask 使用消息闪烁(flash)报错:The session is unavailable because no secret key was set。。。
- callback function
- CallBack Function
- Callback function
- callback function
- Callback Function
- 访问域名不需要加端口
- 【PAT】1099. Build A Binary Search Tree
- Chrome远程调试Andoird APP WebView
- AngularJS最理想开发工具WebStorm
- 数据库备份还原 quartz定时任务调度 自定义表单 java图片爬虫
- bcrypt使用报错-No callback function was given
- easyui tree 模仿ztree 使用扁平化加载json
- ip包格式说明
- APIGuide_应用组件
- uva 10626Buying Coke
- HBase WAL机制
- 二维灰度地形图山脊线自动提取方法整理(最小生成树)
- hdu 1269 迷宫城堡 判断图是否强连通
- Android安全攻防战,反编译与混淆技术完全解析(下)