Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Patch checks if we are in quick registration mode, and if the email is the same as an existing user, it registers it and loggs the user.
Patch also cleans up other unneeded stuff.
Comment | File | Size | Author |
---|---|---|---|
#7 | 1291920-fbconnect-auto-link-7.patch | 1.75 KB | amitaibu |
#3 | 1291920-fb-quick-register-3.patch | 6.23 KB | amitaibu |
#1 | 1291920-fb-quick-register-1.patch | 6.1 KB | amitaibu |
fb-quick-register-1.patch | 5.98 KB | amitaibu | |
Comments
Comment #1
amitaibuSlight change in logic when passing the form.
Comment #2
amitaibuSomething still doesn't work, will check.
Comment #3
amitaibuOk, this one seems to work.
Comment #4
doka CreditAttribution: doka commentedPatch fails on fbconnect.pages.inc, if your other patch (http://drupal.org/node/1291924) is previously applied.
Comment #5
amitaibu> if your other patch (http://drupal.org/node/1291924) is previously applied.
You don't need to apply the other patch. Each patch is in its own.
Comment #6
giorgio79 CreditAttribution: giorgio79 commented#1296370: Code Cleanup and Fixes
Comment #7
amitaibuIt's actually not fixed. Attached patch allows auto-linking. Note that the same code already appears in fbconnect_autoconnect_form_submit() indicating there is some very flow going on in the module right now.. :/
Comment #8
giorgio79 CreditAttribution: giorgio79 commentedPossible typo?
elseif ($uid_from_email = _email_allready_exist($data['email'])) {
should be:
elseif ($uid_from_email == _email_allready_exist($data['email'])) {
Not sure if an issue I just found relates with this one, but I noticed a user is never created in the Drupal db after user clicks on FBConnect in fast registration mode (or without it #1323268: User not created in Drupal after FB Connect). The user image appears indicating connection with FB but the user is never logged in to Drupal and no drupal account is created...
Comment #9
amitaibuNot a typo, we populate the variable inside the IF.
Comment #10
amitaibuThis is now in my sanbox -- https://github.com/amitaibu/fbconnect , which overhauls some of the messy parts of fbconnect.
Comment #12
jcisio CreditAttribution: jcisio commentedI think if there is a user with the same email, we should ask user to enter password to link to that account as it is safer: If user loses his Facebook account, he won't lose his account in every Drupal site.