Skip to content

Instantly share code, notes, and snippets.

@systemist
Created October 20, 2014 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save systemist/91bfad77a5239d836efd to your computer and use it in GitHub Desktop.
Save systemist/91bfad77a5239d836efd to your computer and use it in GitHub Desktop.
var email = "email";
var password = "password";
var data = {email: email, password: password};
Application.ref.createUser(data, function(error){
if(! error ){
ref.authWithPassword(data, function(error, authData){
if( ! error && authData ){
data.id = authData.uid;
var user = self.store.createRecord('user', data);
user.save();
}
})
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment