WP and VF users have different passwords
I successfully connected Wordpress and VanillaForum with SSO, so far so good.
But now I have a major issue and try to explain.
Both WP and VF users tableas are filled with almost the same users but they have different passwords and the real user doesn't know which password have in VF.
So, when an user that doesn't exist on VF's users table, arriving from WP, he is added to VF, automatically logged and all works fine. Great!
If an user come from WP and that user exists on VF's users table AND his password coincide, the user is automatically logged in VF, all is fine. Great!
BUT, if an user come from WP and his password IS DIFFERENT from VF's one, the JSconnect offer to login with the user recognized as WP user, printing a link "USERNAME Sign in with PROVIDER", clicking on this, it drives toward VF login form where it recognize the username and ask for the password.
BUT the password is VF's one and my user doesn't knows it, so it's impossible to log in VF.
What I would like to do.
In class.jsconnect.plugin.php file at row #86, there is the string " $ConnectLabel = '
';" that creates the offer to connect with the source account.
I would like that, in this point, istead to show the link, put a function that completely updates the VF's user data with WP's ones.
In this way, it only happens once that those data are replaced and pairing with WP/VF.
Unfortunately I'm not skilled in JS so I ask for a hand.
Also, as I don't think that I'm the only one in this situation, so I believe that in JSCONNECT plugin, should be added an option like "Want replace VF data with WP ones?"
VF 2.2.1 and Vanilla jsConnect 1.5.3
Thanks in advance to everyone that will answer.