Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Django. How to know from where users authorized.
I'm using social-auth-django for a registration through social networks. I need to knew from where an user authorized. Twitter or Google or Facebook etc. How can I do it! 
https://github.com/python-social-auth/so...ews.py#L42 Wrote:
def _do_login(backend, user, social_user):
    user.backend = '{0}.{1}'.format(backend.__module__,
    login(backend.strategy.request, user)

What's the user.backend look like?  Could that be what you're looking for?
It's dangerous to go alone!  Take this: https://docs.python.org/3/library/index.html
Kevin Flynn is my spirit animal.

Top Page

Forum Jump:

Users browsing this thread: 1 Guest(s)