loopback icon indicating copy to clipboard operation
loopback copied to clipboard

how to direct update user password?

Open makersu opened this issue 11 years ago • 3 comments

Hi: how to direct update user password? I found User.resetPassword, but I'd like to update db directly. Thank you very much.

makersu avatar Sep 11 '15 03:09 makersu

You can use $save on your user model for this - if password is provided it is automatically hashed.

csvan avatar Sep 11 '15 09:09 csvan

@makersu Did @csvan solution work for you? Can I close this?

superkhau avatar Sep 11 '15 16:09 superkhau

Many thanks.

makersu avatar Sep 11 '15 18:09 makersu