Skip to content

Commit cf566a4

Browse files
committed
Merge pull request #59 from ajit-kumar-azad/master
user object was not passed as part of the user-created event object
2 parents a0f4b99 + 48bf61f commit cf566a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firebase-auth.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@
280280
* @param {string} password
281281
*/
282282
createUser: function(email, password) {
283-
this.ref.createUser({email: email, password: password}, function(error) {
283+
this.ref.createUser({email: email, password: password}, function(error, user) {
284284
if (!error) {
285-
this.fire('user-created');
285+
this.fire('user-created', {user: user});
286286
} else {
287287
this.fire('error', error);
288288
}

0 commit comments

Comments
 (0)