From c0d1d0566fda95bd3d10592b96faf515bf32ba88 Mon Sep 17 00:00:00 2001 From: Chris Haines Date: Wed, 13 Mar 2013 00:13:54 -0400 Subject: [PATCH] Make subdomain configurable --- flask_security/core.py | 1 + flask_security/views.py | 1 + 2 files changed, 2 insertions(+) diff --git a/flask_security/core.py b/flask_security/core.py index b30af10..65b4e47 100644 --- a/flask_security/core.py +++ b/flask_security/core.py @@ -33,6 +33,7 @@ _security = LocalProxy(lambda: current_app.extensions['security']) _default_config = { 'BLUEPRINT_NAME': 'security', 'URL_PREFIX': None, + 'SUBDOMAIN': None, 'FLASH_MESSAGES': True, 'PASSWORD_HASH': 'plaintext', 'PASSWORD_SALT': None, diff --git a/flask_security/views.py b/flask_security/views.py index 3efd316..ae59029 100644 --- a/flask_security/views.py +++ b/flask_security/views.py @@ -283,6 +283,7 @@ def create_blueprint(state, import_name): bp = Blueprint(state.blueprint_name, import_name, url_prefix=state.url_prefix, + subdomain=state.subdomain, template_folder='templates') bp.route(state.logout_url, endpoint='logout')(logout)