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

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

原文地址:https://www.cnblogs.com/marvelousone/p/12460874.html