diff options
author | 2020-10-03 00:04:28 +0100 | |
---|---|---|
committer | 2020-10-03 00:04:28 +0100 | |
commit | 4b07fe054215d9cfd5a66214761c74608f6448d5 (patch) | |
tree | f2d59dbcbd79a20241eeb3c987ba883001d37680 | |
parent | Only request the identify scope with Discord on OAuth2 login (diff) |
Display no prompt to users who have already authenticated
-rw-r--r-- | pydis_site/settings.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py index eee559e4..3769fa25 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -402,9 +402,10 @@ ACCOUNT_USERNAME_VALIDATORS = "pydis_site.VALIDATORS" LOGIN_REDIRECT_URL = "home" SOCIALACCOUNT_ADAPTER = "pydis_site.utils.account.SocialAccountAdapter" SOCIALACCOUNT_PROVIDERS = { - 'discord': { - 'SCOPE': [ - 'identify', + "discord": { + "SCOPE": [ + "identify", ], + "AUTH_PARAMS": {"prompt": "none"} } } |