13 lines
620 B
Diff
13 lines
620 B
Diff
diff --git a/powerdnsadmin/routes/index.py b/powerdnsadmin/routes/index.py
|
|
index 3a6f55c..417e05f 100644
|
|
--- a/powerdnsadmin/routes/index.py
|
|
+++ b/powerdnsadmin/routes/index.py
|
|
@@ -392,7 +392,7 @@ def login():
|
|
return authenticate_user(user, 'Azure OAuth')
|
|
|
|
if 'oidc_token' in session:
|
|
- user_data = json.loads(oidc.get('userinfo').text)
|
|
+ user_data = oidc.userinfo()
|
|
oidc_username = user_data[Setting().get('oidc_oauth_username')]
|
|
oidc_first_name = user_data[Setting().get('oidc_oauth_firstname')]
|
|
oidc_last_name = user_data[Setting().get('oidc_oauth_last_name')]
|