Hi, I had to change the database password and update the password in Drupal recently. After I did it (and I do not find any other possible reason) every time user clicks on the social icon he gets newly registered (the system assigns him a new name), and logging in is impossible, it is always processed as a new registration. In drupal my settings are DO NOT SHOW everywhere (I pull the social block on a specific page only), Automatically approve newly registered users through OneAll, and Automatically create new user and create a bogus email if Social network provides no email...
The social networks DO provide email, I checked... But OneAll puts into the database bogus emails instead
Drupal settings say new users need approval of admin, but OneAll is set up to override this, as I said.
Any idea what I am doing wrong? Maybe I should update the db password somewhere with you too?
http://turkish4dummies.com/access/
Answers
We do not need your database password.
To recognize returning users, the plugin used two tables: If you remove these tables or delete the values from it,
then the plugin can no longer recognize returning users and will create new users.
Have you recently modified your database? Maybe rolled back an older backup or something like this?
For which social networks are the email addresses missing?
Regards,
I installed the Drupal OneAll Module again, so that it could rewrite any possible database errors. There are 2 tables now in the database - oneall_social_login_settings and oneall_social_login_identities. oneall_social_login_authmap is NOT there, and it still works the same way - does not recognize an old user but creates a new account for him instead.... At what stage those tables are actually created? When I install a module, right?... I am on Drupal 7 if it matters...
It fails on all social networks that I had (facebook, Instagram, g+...), while all of them DO supply email addresses. It just looks like there is no table to store user_token anywhere....
Its fields are aid/uid/authname/module
BUT... See what happens... Registration method is set up as auto_manual_email (you understand what it means, right?). And it does register with G+ and with SOME account of Youtube (not all). On the rest (facebook for example) it falls back to the manual registration form where username and email address, retrieved from the social network, are pre-populated.
It used to work well till yesterday, social network config is good then. What do you think might cause it now?
the table authmap is a Drupal table, do not rename or alter it.
The table that is missing is oneall_social_login_authmap.
This table is required for Social Login for Drupal 7.
If the table is missing, it's not possible to recognize users, but you should also see error messages in your PHP logs.
Do you have any errors in your PHP/Drupal logs?
Are you sure that you have installed the Drupal 7 plugin?
If you have by error installed the Drupal 8 plugin, the table will not be created as we have removed it for Drupal 8.
Here the SQL to create the table:
CREATE TABLE IF NOT EXISTS `oneall_social_login_authmap` ( `aid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'The primary key of this table.', `uid` int(10) unsigned NOT NULL COMMENT 'User id.', `user_token` varchar(48) NOT NULL COMMENT 'Unique user_token for a social network user, returned by the OneAll API.', PRIMARY KEY (`aid`) ) ENGINE=InnoDB ;
Look what it has inside
And the structure
Looks like something yours... And it collects users that log in through social plugins...
Here is the log. The 3 mistakes they are ours on that page, not related to your plugin but to the scripts on the page where you get redirected.