I want to add an extra attribute to my parse SignUp function. My code is like
signUp: function(e) {
var self = this;
var username = this.$("#signup-username").val();
var password = this.$("#signup-password").val();
var sex=this.$("#signup-sex").val();
Parse.User.signUp(username, password, sex, { ACL: new Parse.ACL() }, {
success: function(user) {
new ManageTodosView();
self.undelegateEvents();
delete self;
}
If I pass only username and password, it works and adds a user to database.
The documentation shows only 4 arguments for the Parse.User.signUp function: http://www.parse.com/docs/js/symbols/Parse.User.html#signUp
My guess is this will do the trick:
You can do it like this