javascript - Update user object in parse.com -
how can update user object in parse?i know must logged user modify security reason. code don't works :post https://api.parse.com/1/classes/_user/xj3qllyy07 400 (bad request)
var user = parse.user.current(); console.log(user); user.save(null, { success: function(user) { user.set("email", "pty"); user.save(); } });
for parse.user
object, need explicitly set email address (see api documentation):
var user = parse.user.current(); user.setemail("email", options);
Comments
Post a Comment