diff --git a/webapp/views/student.py b/webapp/views/student.py index d5aa693..55935c1 100644 --- a/webapp/views/student.py +++ b/webapp/views/student.py @@ -230,7 +230,7 @@ def login_with_lks_callback(): scope='basic') response = oauth.fetch_token(token_ep, authorization_response=request.url) access_token = response['access_token'] - info = requests.get(userinfo_ep, headers={'Authorization': f'Bearer {access_token}'}) + info = requests.get(userinfo_ep, headers={'Authorization': f'Bearer {access_token}'}).json() email = info['login'] student = db.students.get_by_external_email(email, 'lks') if not student: