Facebook log in works perfectly well but the issue is that facebook is disabled in educational institutes.
So we want the user to login using the same email address which he uses to log into facebook where facebook is disabled.
The Request new password for any users(using emails) that have signed up from facebook work for one time log in. Clicking on the link from the email for lost password would allow the facebook user to log in once.
Changing the password using this one time login also works during this session but it does not work the next time & displays "Sorry, unrecognized username or password. Have you forgotten your password?". The newly entered password should allow the user to login when the user has no access to facebook.
It would be great to have secondary logins using the same email address too where facebook is disabled. Its not a problem is the user cant invite his friends or share/like any page.
Comments
Comment #1
Dave Cohen commentedIf you're reporting a bug, please explain what it is.
As far as I know, everything you describe already works.
The main trick is that you must prompt for the email extended permission. Without that, drupal never learns the email address. With that, fb_user.module will create a user account with the email address.
A user who has logged in via facebook connect can go to my account >> edit and change their username, password, email, etc. But the account will remain linked to facebook.
Comment #2
adityagada commentedThe email extended permission has been requested & is being stored in the user table.
1. User registered with facebook is not able to log in with drupal core login.
2. User registered with facebook can login once when he clicks on the link send by Forgot my password.
3. After setting the user password from /user/ID/edit , the user is not able to log in into the site with email & the new password.
He can log in only with facebook connect.
You can check this problem on my site for reference :
www DOT mufocus DOT com ( remove white spaces & replace Dot with .)
Thanks a lot.
Comment #3
Dave Cohen commented1. User registered with facebook is not able to log in with drupal core login.
At this point, the user has not specified a password. I would not expect them to be able to log in. I suppose Drupal could send an email to them, that would be a worthwhile enhancement.
3. After setting the user password from /user/ID/edit , the user is not able to log in into the site with email & the new password.
I find this hard to believe. What do you mean, "not able to"?
Remember Drupal uses username, not email, for logging in. Maybe you're providing the wrong username. It has to match the user table.
Comment #4
adityagada commentedOk. I need to try with Usernames.
Now suddenly when i try to reset my password in the user edit page, after putting the password & clicking on save.
I get "The e-mail address ad@slmbk.com is already registered. Have you forgotten your password?"
Which should not happen.
Comment #5
adityagada commentedwell, email can be used instead of username.
Comment #6
mdlamar commentedThe issue may have to do with overriding login form option in the fb_connect settings.
My site's login has been completely destroyed after removing my fb app, connect settings, disabling the modules, and uninstalling them. The only login that works is the fb_connect one which opens in a new window without scroll or nav bar control. I've tried several methods to get the drupal core login working again. The behavior looks like a normal login. It recognizes the password and goes to the users/username url as it's supposed to, but isn't in fact logged in. I've even tried creating new users with the modules uninstalled and those accounts do the same thing. So I'm at a bit of a road block if I choose to no longer use the site as a facebook app with connect because I can't even log in myself to administer the content.
Has anyone experienced similar behavior that found a solution or has a suggestion?
Edit: I took a look at the db sessions table and found the one I tried with the broken behavior and it in fact says log in successful. But it's definitely not logged in.
messages|a:1:{s:6:"status";a:1:{i:0;s:17:"Login successful.";}}
UPDATE: Fixed it when I remembered that other login modules can make things break when mixed with the fb_connect/login overriding. I used drush to disable and uninstall them then was able to log in successfully (for real this time) with an incognito window.
I know this isn't exactly the right spot for this whole line of questions. But since I found the solution, I believe the content should live somewhere for searchability. Feel free to move it appropriately. I'll look around a bit more for a better spot.
ps: to be specific, i had logintoboggan and openid modules enabled : / might as well have shot myself in the foot before the race.
Comment #7
Dave Cohen commentedI read your post twice, and I don't get what caused the problem or why you believe modules/fb has anything to do with it. It sounds like "I had a mysterious problem logging in. I disabled logintoboggan and the problem went away."
If there really is a problem caused by modules/fb, please submit a new issue with exactly how to reproduce. And yes, others have reported problems with both modules/fb and logintoboggan in the past (but I don't recall all details off the top of my head).