Skip to content

Commit

Permalink
fix(nextcloud): Token/server accidentally swapped
Browse files Browse the repository at this point in the history
How did this ever work?
  • Loading branch information
saemideluxe authored Apr 16, 2020
1 parent 6a6d3c6 commit b52a61b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allauth/socialaccount/providers/nextcloud/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def complete_login(self, request, app, token, **kwargs):
request, extra_data)

def get_user_info(self, token, user_id):
headers = {'Authorization': 'Bearer {0}'.format(self.server)}
headers = {'Authorization': 'Bearer {0}'.format(token)}
resp = requests.get(self.profile_url + user_id, headers=headers)
resp.raise_for_status()
data = ET.fromstring(resp.content.decode())[1]
Expand Down

0 comments on commit b52a61b

Please sign in to comment.