diff options
author | 2018-03-29 10:52:48 +0100 | |
---|---|---|
committer | 2018-03-29 10:52:48 +0100 | |
commit | 0073f9ea6821a43aea9437707586af04dc0cbed2 (patch) | |
tree | 021b97e835f776796223cdec8f587cf17597cd5e /pysite/base_route.py | |
parent | Add PREFERRED_URL_SCHEME env var to fix `url_for()` (diff) |
Attempt to fix HTTPS and more OAuth issues
Diffstat (limited to 'pysite/base_route.py')
-rw-r--r-- | pysite/base_route.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pysite/base_route.py b/pysite/base_route.py index 71a4c894..0c1c0357 100644 --- a/pysite/base_route.py +++ b/pysite/base_route.py @@ -5,7 +5,7 @@ from typing import Any from flask import Blueprint, Response, jsonify, render_template from flask.views import MethodView -from pysite.constants import ErrorCodes +from pysite.constants import DISCORD_OAUTH_REDIRECT, ErrorCodes from pysite.mixins import OauthMixin @@ -29,6 +29,7 @@ class BaseView(MethodView, OauthMixin): context["current_page"] = self.name context["view"] = self context["logged_in"] = self.logged_in + context["login_url"] = DISCORD_OAUTH_REDIRECT return render_template(template_names, **context) |