You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the closest thing to get this to work right is to do the schema.methods.authenticate and if that passes, run the schema.methods.setPassword, however the problem is that the authenticate method runs through an entire process of logging in, which would be overkill for this feature.
User needs to enter old and new password to change it, so how should i verify old password? Method
setPassword
doesn't haveoldPassword
parameter.The text was updated successfully, but these errors were encountered: