aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Rohan Reddy Alleti <[email protected]>2020-10-04 21:23:09 +0530
committerGravatar GitHub <[email protected]>2020-10-04 21:23:09 +0530
commit2e454f4598b6494ba4e686875a979ef8e03c3c95 (patch)
tree5c2baaa4ef1bbda5c251c92371ff95cb1ebacc6c
parentMerge branch 'master' into user_endpoint (diff)
parentMerge pull request #402 from python-discord/joseph/reduce-discord-scopes (diff)
Merge branch 'master' into user_endpoint
-rw-r--r--pydis_site/apps/api/views.py5
-rw-r--r--pydis_site/settings.py8
2 files changed, 11 insertions, 2 deletions
diff --git a/pydis_site/apps/api/views.py b/pydis_site/apps/api/views.py
index 7ac56641..0d126051 100644
--- a/pydis_site/apps/api/views.py
+++ b/pydis_site/apps/api/views.py
@@ -135,8 +135,9 @@ class RulesView(APIView):
),
(
"Do not provide or request help on projects that may break laws, "
- "breach terms of services, be considered malicious/inappropriate "
- "or be for graded coursework/exams."
+ "breach terms of services, be considered malicious or inappropriate. "
+ "Do not help with ongoing exams. Do not provide or request solutions "
+ "for graded assignments, although general guidance is okay."
),
(
"No spamming or unapproved advertising, including requests for paid work. "
diff --git a/pydis_site/settings.py b/pydis_site/settings.py
index 1f042c1b..3769fa25 100644
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -401,3 +401,11 @@ ACCOUNT_USERNAME_VALIDATORS = "pydis_site.VALIDATORS"
LOGIN_REDIRECT_URL = "home"
SOCIALACCOUNT_ADAPTER = "pydis_site.utils.account.SocialAccountAdapter"
+SOCIALACCOUNT_PROVIDERS = {
+ "discord": {
+ "SCOPE": [
+ "identify",
+ ],
+ "AUTH_PARAMS": {"prompt": "none"}
+ }
+}