colinskow / superlogin

Powerful authentication for APIs and single page apps using the CouchDB ecosystem which supports a variety of providers.
MIT License
371 stars 117 forks source link

how to add profile data with registration? #203

Open fransyozef opened 6 years ago

fransyozef commented 6 years ago

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)
              ;