From 416cc8d4582d2e74655be206f3dd143ca4c5fdb2 Mon Sep 17 00:00:00 2001 From: Muneeb Samuels Date: Mon, 6 Apr 2015 20:15:01 +0200 Subject: [PATCH] user-created event - return user data Returns the user data when creating a new user with password provider. --- firebase-login.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }