Skip to content

Conversation

@ardelato
Copy link
Collaborator

@ardelato ardelato commented Jul 18, 2025

Description

If a user created via local auth has the same email address as an iFixit user, then they will be unable to login to the site with their iFixit account. We throw a SQL error because we attempt to create a new user with the external auth, but two users can't share the same email address.

We can't really delete the users from the DB if they have already created groups and events. We also cannot automatically sync the local user with the iFixit account, if they share the same email, for security reasons - this approach would allow for account take over if someone uses an email address on iFixit that is the same on the Restarters app.

CR Notes

The solution is to create a Artisan command that we would manually run to migrate/sync a local auth user with their desired iFixit user.

qa_req 0 I already confirmed this works locally

image

If a user created via local auth has the same email address as an iFixit
user, then they will be unable to login to the site with their iFixit
account. We can't really delete the users from the DB if they have
already created groups and events. As such, this migration tool will
allow us to manually sync/migrate the users with their iFixit counterparts.
@ardelato ardelato changed the title feat: add migration tool for external auth users Feature: Add migration tool for external auth users Jul 18, 2025
Copy link
Member

@mlahargou mlahargou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR 📱

@ardelato ardelato merged commit 557fbf8 into hermes Jul 18, 2025
@ardelato ardelato deleted the feat--add-migration-tool-for-external-auth branch July 18, 2025 18:59
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

Successfully merging this pull request may close these issues.

3 participants