Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 26, 2020. It is now read-only.

Commit b95e817

Browse files
Merge pull request #14 from aarohmankad/master
Save users in database under their uid, not undefined.
2 parents 02c9919 + 01fb53b commit b95e817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎pages/signup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SignUpForm extends Component {
3939
.doCreateUserWithEmailAndPassword(email, passwordOne)
4040
.then(authUser => {
4141
// Create a user in your own accessible Firebase Database too
42-
db.doCreateUser(authUser.uid, username, email)
42+
db.doCreateUser(authUser.user.uid, username, email)
4343
.then(() => {
4444
this.setState(() => ({ ...INITIAL_STATE }));
4545
Router.push(routes.HOME);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /