chibaba/connec

Not a very good way to know if email exists

Opened this issue · 0 comments

newUser.save(err => {

Check Sequelize docs to see what type of error is returned when uniqueness rule fails. Just testing if err catches all error even if DB failure and the user gets incorrect response.