mirror of
https://github.com/wassname/flask-security.git
synced 2026-06-29 16:30:04 +08:00
Merge pull request #100 from chrishaines/develop
Make subdomain configurable
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -313,6 +313,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)
|
||||
|
||||
Reference in New Issue
Block a user