Skip to content

Parse api password reset #454

Description

@srinivasagopalan

Hi All,

I have parse server set up in my own domain. I am trying the custom password reset functionality like below using rest api. Every other field update works other than the password field. Could you guide me how i can resolve this. I am using the master key.

app.get("/updatepassword", function(req, res) {

var options = {
    host : '<mydomian>',
    port : '<portno>',
    method: 'PUT',
    path : '/parse/classes/_User/' + req.query.userId,
    headers : { 'X-Parse-Application-Id' : 'testappid' , 'X-Parse-Master-Key' : 'testmasterkey', 'Content-Type' : 'application/json' }
}

var data = JSON.stringify({
  password: req.query.password
});
var req = http.request(options, function(response) {
    // Continuously update stream with data
    var body = '';
    response.on('data', function(d) {
        body += d;
    });
    response.on('end', function() {

    });
});

req.write(data);
req.end();

});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions