For a Django website that I am making I have the following authentication system: - People can log in through Facebook - People can log in through Django Auth
I have now arrived at a point where I can log in through Facebook. When Facebook returns I save the user's name and email etc. The question is now though: how can I merge these Facebook accounts with the Django auth system?
For example, a "normal" user would log in by:
user = auth.authenticate ( user , password )
auth.login ( request , user )
But how would I go about this when people login through Facebook, which of course does not pass a password?
Hope you understand my question =)!