-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove "AND provider='email'" from SQL when login #266
Comments
If your users want to connect via Facebook, you use the Facebook Connect button, otherwise, they use their emails. |
ok let say my user connected with facebook first. The provider field is set to 'facebook'. does not find any user because the provider of my user was set ta 'facebook' |
I think your user need to connected via email first, then you can link his Facebook account with it. You might need additional fields such as "facebook_id" and you'll need to change the query made on login. |
Hi nicolas, thanks for your answers. |
As the You can also create a new controller in any places you want and specify in your |
Thanks for the quick answer. I let you know if I have problems. |
Actually, it is very difficult for me to progress because of the issue I get when connecting to facebook: #268 |
Resolved in #964 |
Hi,
I want my users to be able to login with facebook and email to the same account.
The problem with devise_token_auth is that it check the provider field on login:
Is it possible to remove the "AND provider='email'" from the conditional? Or do you have another way to resolve my problem.
The text was updated successfully, but these errors were encountered: