hashsync专题

Error: Illegal arguments: undefined string at bcrypt.hashSync

用react写后端的signUp时出现报错undefined string at bcrypt.hashSync,代码如下,报错在生成password时! const bcrypt = require('bcryptjs')const jwt = require('jsonwebtoken')const db = require('../config/db.config.js')const