mongoose pre saved bcrypt not saved mongoose pre saved bcrypt not saved mongoose mongoose

mongoose pre saved bcrypt not saved


hours of hours of hours of debugging later, is just found the solution to my issue:

after altering the password information you need to return next(user); with your user object as parameter. now it works like a charm.