Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

always update the facebook user who is authenticated: he could exist …

…in the db as a friend of another user
  • Loading branch information...
commit d7727276744049e8fd07692ac368f43e76689f9e 1 parent 67059fd
@schmidsi authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 facebook/backends/authentication/__init__.py
View
6 facebook/backends/authentication/__init__.py
@@ -46,11 +46,7 @@ def authenticate(self, graph=None):
facebook_user, created = FacebookUser.objects.get_or_create(id=int(me['id']))
facebook_user.access_token = graph.access_token
-
- if created:
- facebook_user.get_from_facebook(graph=graph, save=True)
- else:
- facebook_user.save()
+ facebook_user.get_from_facebook(graph=graph, save=True)
try:
if isinstance(facebook_user.user, User) and facebook_user.user.is_authenticated():
Please sign in to comment.
Something went wrong with that request. Please try again.