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

Missing method for changing user's password #36

Description

@PetrSnobelt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions