Mongoose Schema .pre('save') function not hashing my newly updated password

后端 未结 0 971
南旧
南旧 2021-01-15 08:19

I am trying to update the user password in my controller, but the password doesn\'t hash when I run the .save()

here is the code in my controller

相关标签:
回答
  • 消灭零回复
提交回复
热议问题