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

[Bug] A new profile is created each time a user signs in #129

Open
chungthuang opened this issue Dec 10, 2023 · 0 comments
Open

[Bug] A new profile is created each time a user signs in #129

chungthuang opened this issue Dec 10, 2023 · 0 comments

Comments

@chungthuang
Copy link
Contributor

Describe the bug
When someone signs in to the website, a new profile is created

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://devlaunchers.org/
  2. Click on Sign In
  3. Check strapi admin panel
  4. See a new profile is created

Expected behavior
Only create a new profile if this is the first time a user signs in

Environment
Staging and production. This doesn't have in dev, because the logic to create profile is in the Google provider

Additional context
https://github.com/dev-launchers/strapiv4/blob/main/src/extensions/users-permissions/server/services/providers-registry.js#L98 should check if the user already has a profile. If not create one and link it to the user.

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