Closed
Description
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
Labels
No labels