Illegal arguments: string, undefined at Object.bcrypt.compareSync

Illegal arguments: string, undefined at Object.bcrypt.compareSync

在进入bcrypt.compareSync(password, user.get('password'))方法的时候报错了

 Illegal arguments: string, undefined     at Object.bcrypt.compareSync

请仔细检查代码中所用字段名与数据库是否匹配

posted @ 2020-03-11 10:35  marvelousone  阅读(1180)  评论(0编辑  收藏  举报