From 0d0a22b1931c5bbe24f1f620f4e5a60475997d16 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Thu, 29 Mar 2018 10:03:17 +0100 Subject: OAuth fixes --- pysite/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pysite/constants.py') diff --git a/pysite/constants.py b/pysite/constants.py index 7df4674e..03b660d6 100644 --- a/pysite/constants.py +++ b/pysite/constants.py @@ -27,7 +27,7 @@ SERVER_ID = 267624335836053506 DISCORD_API_ENDPOINT = "https://discordapp.com/api" DISCORD_OAUTH_REDIRECT = "/auth/discord" -DISCORD_OAUTH_AUTHORIZED = "/auth/discord/authorized" +DISCORD_OAUTH_AUTHORIZED = environ.get("DISCORD_OAUTH_AUTHORIZED", "https://pythondiscord.com/auth/discord/authorized") DISCORD_OAUTH_ID = environ.get('DISCORD_OAUTH_ID', '') DISCORD_OAUTH_SECRET = environ.get('DISCORD_OAUTH_SECRET', '') DISCORD_OAUTH_SCOPE = 'identify email guilds.join' -- cgit v1.2.3