mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Saving the new session_id for users where the session_id changes between authorize and verification. Bizarre.
This commit is contained in:
parent
c9d1511052
commit
2e8e4fabea
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,8 @@ def reader_callback(request):
|
|||
user_tokens = OAuthToken.objects.filter(remote_ip=request.META['REMOTE_ADDR']).order_by('-created_date')
|
||||
if user_tokens:
|
||||
user_token = user_tokens[0]
|
||||
user_token.session_id = request.session.session_key
|
||||
user_token.save()
|
||||
|
||||
# Authenticated in Google, so verify and fetch access tokens
|
||||
token = oauth.Token(user_token.request_token, user_token.request_token_secret)
|
||||
|
|
Loading…
Add table
Reference in a new issue