Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Missing method for changing user's password #36

Open
PetrSnobelt opened this issue Jun 15, 2016 · 1 comment
Open

Missing method for changing user's password #36

PetrSnobelt opened this issue Jun 15, 2016 · 1 comment

Comments

@PetrSnobelt
Copy link

I try to use updateUser for changing user's password, but it don't work.
Workaround is adding changePassword method into
https://github.com/anvilresearch/connect-nodejs/blob/master/rest/users.js

something like this

function changePassword (id, password, options) {
  options = options || {}
  options.url = '/v1/users/' + id + '/password'
  options.method = 'PATCH'
  options.json = {password: password}
  return request.bind(this)(options)
}
exports.changePassword = changePassword

Please add it into some future release

@opravil-jan
Copy link

This missing functionality is problem for us too. Can you consider to add it, please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants