Python Forum
Django. How to know from where users authorized.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Django. How to know from where users authorized.
#1
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! 
Reply
#2
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__,
                                 backend.__class__.__name__)
    login(backend.strategy.request, user)

What's the user.backend look like?  Could that be what you're looking for?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,249 Jun-30-2019, 12:21 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020