Coder Social home page Coder Social logo

Comments (18)

SchlesserClaude avatar SchlesserClaude commented on June 16, 2024

Hello, the plugin uses two tables to map social network profiles to user accounts:

_DB_PREFIX_  + oasl_user
_DB_PREFIX_  + oasl_identity

Could you it be that you have reset your users without resetting the mapping tables?

from social-login-prestashop.

SchlesserClaude avatar SchlesserClaude commented on June 16, 2024

If it's a caching problem, then it could be that the cache displays old pages from the cache. So when user FooUser logs in, the cache might displayed a page which was cached for BarUser.

from social-login-prestashop.

 avatar commented on June 16, 2024

@SchlesserClaude of course what happens is what you say .. the point is that disabling oneall plugin no caching issue appears for users .. I think that if it would be a page cache issue it should occur with or without oneall plugin

BTW, no user reset was made .. I think it could be a wrong cache key in some template you use (smarty cache I mean) ... could it be?

from social-login-prestashop.

SchlesserClaude avatar SchlesserClaude commented on June 16, 2024

Could you give me the link to you shop so that I can test the error?

from social-login-prestashop.

 avatar commented on June 16, 2024

Sorry, but we can't keep it online as every private user data will be disclosed ..

Will try to debug next days

from social-login-prestashop.

 avatar commented on June 16, 2024

Hi,
Not sure I understand the scenario you describe in the first post.
Are the usernames the same?
Is BarUser a regular, existing, user, or was the account created with social login?
Also, could it be that the account was automatically linked because of matching email addresses?

Thanks.

from social-login-prestashop.

 avatar commented on June 16, 2024

@frdpnl

Accounts seems to be created with social login .. I'll try to reproduce to a test server ASAP in order to give you better statistics

User foo registers and logins using sl
User bar do the same, but after being redirected from FB back to the shop he sees foo data in his account

from social-login-prestashop.

 avatar commented on June 16, 2024

Ok, thanks.
As mentioned, one possibility is that the email addresses match, and both accounts are linked.

from social-login-prestashop.

 avatar commented on June 16, 2024

@frdpnl this is not the case ..

from social-login-prestashop.

 avatar commented on June 16, 2024

Hi,
Ran a few tests with cache options on, and couldn't reproduce the problem you describe. For Prestashop 1.6.x versions.
If you have some other info on the setup, or steps involved, that would help troubleshoot further.
Thanks.

from social-login-prestashop.

 avatar commented on June 16, 2024

I can't find a reason too ...

Have you OPcache enabled too? I'm trying to assure it is not the problem ...

This is my opcache configuration, can you try it?

screen shot 2016-06-22 at 11 48 31

from social-login-prestashop.

 avatar commented on June 16, 2024

@frdpnl did you tried this OPcache settings? .. It seems that they are giving some strange behavior on my server .. if you can reproduce I'll work hard to isolate the bad setting.

Thanks

from social-login-prestashop.

 avatar commented on June 16, 2024

Hi,
I've tried to set the same Opcache settings, but could not reproduce the behaviour.
However, I do not use php 7 (but 5.5), and have not set any blacklisted file either.
Is there anything specific with the 2 profiles involved, as far as you can see?
Or does this occur for any 2 profiles?
If you have a public URL, I can test with some of my test accounts.

Thanks.

from social-login-prestashop.

 avatar commented on June 16, 2024

Could be caching issue with ajax requests? ...

I'm seeing a number of PS files not sending cache-invalidation headers on Ajax responses ... I have caching issue with BO orders/new-clients/new-messages badges too ..
Badges issues seems to be solved adding no-caching headers to the response ..

Hope this can help

from social-login-prestashop.

 avatar commented on June 16, 2024

I'm going on fighting against this issue ..

  • added CURL option to have a fresh connection -> no luck

Im' doing some tests .. it seems to be a problem with FB .. but I can't understand why

CLeared browser cache, removed cookies, emtied any king of server cache ,.. server reboot done ..

Unfortunately I can't leave the module active on the server for your tests, as it is a grave security hole and users personale data disclosure ..

Can you point me to some kind of debugging I can perform by myself? What is the data flow I have to follow to try to find the bug?

This is my settings:

screen shot 2016-07-15 at 18 39 51

from social-login-prestashop.

 avatar commented on June 16, 2024

Just dropped everything in the DB:

  • DROP every oneall DB record
  • added curl_setopt ($curl, CURLOPT_FRESH_CONNECT, 1); in tools.php

AFAICS it seems to work !!!

from social-login-prestashop.

SchlesserClaude avatar SchlesserClaude commented on June 16, 2024

Hello,

if this solves the issue then the problem is related to the mapping tables:

DB_PREFIX + oasl_user
DB_PREFIX + oasl_identity

Maybe at seem points you removed users but the mapping table was not updated

from social-login-prestashop.

 avatar commented on June 16, 2024

If I login via social with a new user, for test, and then I remove this user in PS BO, then the related records in these mapping tables are not automatically removed.
Is this the intended behaviour?

Moreover.. in a such scenario, how the hanging records can explain the resulting behaviour?

Thanks

from social-login-prestashop.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.