Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add profile data with registration? #203

Open
fransyozef opened this issue Apr 26, 2018 · 0 comments
Open

how to add profile data with registration? #203

fransyozef opened this issue Apr 26, 2018 · 0 comments

Comments

@fransyozef
Copy link

fransyozef commented Apr 26, 2018

So I'm using IONIC/Angular to register an user. That works. But what kind of http param do I need to set in order to create a profile key in the user document data? For example I want to add "name". So when I do the login request, I will get the "name" in the profile object.

My code (Angular)

              const body = new HttpParams()
              .set('name', name)
              .set('username', username.toLowerCase())
              .set('email', email.toLowerCase())
              .set('password', password)
              .set('confirmPassword', password)
              .set('profile.name', name)
              ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant