diff --git a/apps/authentication/backends/openid/models.py b/apps/authentication/backends/openid/models.py index ca50ee266..a945e8eb3 100644 --- a/apps/authentication/backends/openid/models.py +++ b/apps/authentication/backends/openid/models.py @@ -157,7 +157,7 @@ class Client(object): userinfo = self.get_userinfo(token=token_response['access_token']) with transaction.atomic(): name = userinfo.get('name', '') - username = userinfo.get('preferred_username', ''), + username = userinfo.get('preferred_username', '') email = userinfo.get('email', '') email = construct_user_email(username, email)