# Fire-base user registration

**URL:** <https://forum.ionicframework.com/t/fire-base-user-registration/106675>\
**Category:** ionic-v3\
**Created:** [September 25, 2017, 5:36pm UTC](https://forum.ionicframework.com/t/fire-base-user-registration/106675 "2017-09-25T17:36:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zuest](https://avatars.discourse-cdn.com/v4/letter/z/b9bd4f/32.png) [@zuest](https://forum.ionicframework.com/u/zuest)\
**Post date:** [September 25, 2017, 5:36pm UTC](https://forum.ionicframework.com/t/fire-base-user-registration/106675/1 "2017-09-25T17:36:45Z")

</div>

so im trying to make a registeration for a user on firebase and i want the users data such as name,email,password, age…etc all to be saved once he registers

anyone know how i can do so, im currently using this.afAuth.auth.createUserWithEmailAndPassword(newEmail, newPassword)  
but it just creates a user with email and pass in the database

---

<div class="post-metadata">

**Author:** ![jaydz](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jaydz](https://forum.ionicframework.com/u/jaydz)\
**Post date:** [September 26, 2017, 12:26am UTC](https://forum.ionicframework.com/t/fire-base-user-registration/106675/2 "2017-09-26T00:26:05Z")

</div>

you could do

```auto
this.afAuth.auth.createUserWithEmailAndPassword(newEmail, newPassword)
.then(() => { let createThisUser = firebase.database().ref('Users').push(); 
                  createThisUser.set
                 ({ name: newUserName, 
                    age: newUserAge,
                    email: newEmail, 
                    reminder: newPassword,
                    key: createThisUser.key })
             }

```

I personally like adding the key property to firebase items to set the key in other categories, or add the key to other categories as a reference.
