← Back to Social Login Support
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)
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
No, second login was from another browser (And many thanks for replying quickly!)
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
Many thanks to you, DjGMory This helped a lot, not only with Twitter, but even with my Vkontakte integration! I'll try to write on how I've managed to make custom provider work with this plugin to give back to the community
patandjali9116 said:
Many thanks to you, DjGMory This helped a lot, not only with Twitter, but even with my Vkontakte integration! I'll try to write on how I've managed to make custom provider work with this plugin to give back to the community
So, Can you tell about VK integration more please?
1-6 of 6