Back to Social Login Support

patandjali9116
patandjali9116

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)

Flynsarmy
Flynsarmy

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

patandjali9116
patandjali9116

No, second login was from another browser (And many thanks for replying quickly!)

Last updated

DjGMory
DjGMory

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

patandjali9116
patandjali9116

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

dfrost
dfrost

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