diff --git a/firebase-login.html b/firebase-login.html index cff2265..4c06161 100644 --- a/firebase-login.html +++ b/firebase-login.html @@ -294,9 +294,9 @@ * @param {string} password */ createUser: function(email, password) { - this.ref.createUser({email: email, password: password}, function(error) { + this.ref.createUser({email: email, password: password}, function(error, userData) { if (!error) { - this.fire('user-created'); + this.fire('user-created', userData); } else { this.fire('error', error); }