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
Disconnected OAuth AuthenticationOption bug #24459
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM code-wise, though there's a failing Circle test that seems like it might be related that's worth looking into pre-merge.
@islemaster and @ewjordan just a heads up -- the unit test failure in these tests were checking that the |
Bug description
Longer description
Let's use Google OAuth as an example: You create an account through Google, change your primary authentication option in some way so that you should no longer be attached to the original Google email address you used to create an account. However, because the before-save hooks
normalize_email
andhash_email
were usingread_attribute(:email)
instead of theemail
method, that original Google email address was always attached to your account via the email column on the User table.