Skip to content

Populate records in appUsers on allowAutoSignUp #80

@vkerkhoff

Description

@vkerkhoff

Is your feature request related to a problem? Please describe.
When the allowAutoSignUp is used to create new users that are not already registered, only the email address is populated. In the admin it's now showing "Untitled - ID: 67dd7276167a54d34a5bd2b2" for the user in the AppAccounts grid.

Describe the solution you'd like
It would be great if it would be possible to describe a list of fields (or mapping of fields) of data that needs to be replicated to the AppUsers collection. For example: In my case, I would like to have the name and picture inserted on account creation.

In the appAuthPlugin config the following section could be added:
{
allowAutoSignUp: true,
autoSignUpFields: [
{
source: 'name',
destination: 'name',
},
{
source: 'picture',
destination: 'avatar',
},
],

Describe alternatives you've considered
Adding an extra query to fetch the data from the AppAccounts collection would be an option, but if people use different providers to log in, there is no consistent display of the name as it's unknown which of the providers is used at the time.

Thanks!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions