Commit 60d50a6c authored by ynerant's avatar ynerant
Browse files

requesting email is useless

parent e4bfcf60
Pipeline #4769 failed with stages
in 1 minute and 15 seconds
......@@ -68,7 +68,6 @@ class OAuthMiddleware(MiddlewareMixin):
user, _ = DiscordUser.objects.get_or_create(discord_id=discord_id)
user.username = user_json['username']
user.discriminator = user_json['discriminator']
user.email = user_json['email']
user.avatar_id = user_json['avatar']
user.is_staff = user.is_superuser = f"{user.username}#{user.discriminator}" in settings.SUPERUSERS
user.save()
......
......@@ -156,7 +156,7 @@ OAUTH_CLIENT = {
'api_base_url': 'https://discordapp.com/api/',
'redirect_uri': 'http://localhost:8000/oauth/callback',
'client_kwargs': {
'scope': 'identify email',
'scope': 'identify',
'token_placement': 'header'
},
'userinfo_endpoint': 'users/@me',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment