Kenneth invited to application and pending user was created (id: 10)
When he logged in with OAuth, it created a new user instead of updating old one
This issue is in the #from_omniauth method in the User class. The email used to invite Kenneth had a capital K "Ktransier@gmail.com" but the email sent back from Strava had a lower case k "ktransier@gmail.com" so I wasn't able to find the user to update and instead created a brand new one.
Context:
This issue is in the #from_omniauth method in the User class. The email used to invite Kenneth had a capital K "Ktransier@gmail.com" but the email sent back from Strava had a lower case k "ktransier@gmail.com" so I wasn't able to find the user to update and instead created a brand new one.