My steps: 1) Install a fresh October CMS with Vanilla theme 2) Install Social Login through backend 3) add settings for Twitter API 4) add code to login template ... First auth goes smoothly. Second(from another twitter account) goes smoothly as well, but shows previous user credentials on the /account page. User doesn't get added to DB. Log is empty. Provider \plugins\flynsarmy\sociallogin\socialloginproviders\Twitter.php returns correct user though(logged it)
Social Login
Log in with your social media accounts!
← Back to Social Login Support
Were you still logged in to october frontend when you did the second twitter login? If so you probably just associated both Twitter accounts with the same October rainlab.user account.
Last updated
I had the same problem, which I believe is arising because when the plugin checks if a provider exists, it was only checking if the provider ID (i.e. "Google") exists, instead of checking if that ID exists FOR a particular user.
I fixed it by removing the comment-out on this line in UserManager.php in the findProvider() method:
->where('provider_token', '=', $provider_details['provider_token'])
But as a warning, I don't know how/if this affects facebook/twitter login. I'm only using Google on my app.
As another warning, when the plugin is updated by Flyn, you'll lose these changes. I've been changing the plugin around so much to fit my app's needs that I've been ok with editing the source.
Last updated
1-6 of 6