Skip to content

Commit

Permalink
Update social field on link
Browse files Browse the repository at this point in the history
  • Loading branch information
mfraezz committed Aug 25, 2016
1 parent 6cb6433 commit 6fe26d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ def external_login_confirm_email_get(auth, uid, token):
user.register(user.username)
user.date_last_logged_in = datetime.datetime.utcnow()
user.external_identity[provider][provider_id] = 'VERIFIED'
user.social[provider.lower()] = provider_id
user.save()
mails.send_mail(
to_addr=user.username,
Expand All @@ -393,6 +394,7 @@ def external_login_confirm_email_get(auth, uid, token):
elif external_status == 'LINK':
user.date_last_logged_in = datetime.datetime.utcnow()
user.external_identity[provider][provider_id] = 'VERIFIED'
user.social[provider.lower()] = provider_id
user.save()
mails.send_mail(
user=user,
Expand Down

0 comments on commit 6fe26d4

Please sign in to comment.