Bugfix for ResetPasswordForm in config.py
This commit is contained in:
@@ -3,7 +3,6 @@ from datetime import timedelta
|
||||
import redis
|
||||
|
||||
from common.utils.prompt_loader import load_prompt_templates
|
||||
from eveai_app.views.security_forms import ResetPasswordForm
|
||||
|
||||
basedir = path.abspath(path.dirname(__file__))
|
||||
|
||||
@@ -46,7 +45,6 @@ class Config(object):
|
||||
SECURITY_EMAIL_SUBJECT_PASSWORD_NOTICE = 'Your Password Has Been Reset'
|
||||
SECURITY_EMAIL_PLAINTEXT = False
|
||||
SECURITY_EMAIL_HTML = True
|
||||
SECURITY_RESET_PASSWORD_FORM = ResetPasswordForm
|
||||
|
||||
# Ensure Flask-Security-Too is handling CSRF tokens when behind a proxy
|
||||
SECURITY_CSRF_PROTECT_MECHANISMS = ['session']
|
||||
|
||||
@@ -17,6 +17,7 @@ from .errors import register_error_handlers
|
||||
from common.utils.celery_utils import make_celery, init_celery
|
||||
from common.utils.template_filters import register_filters
|
||||
from config.config import get_config
|
||||
from eveai_app.views.security_forms import ResetPasswordForm
|
||||
|
||||
|
||||
def create_app(config_file=None):
|
||||
@@ -37,6 +38,7 @@ def create_app(config_file=None):
|
||||
app.config.from_object(get_config('dev'))
|
||||
|
||||
app.config['SESSION_KEY_PREFIX'] = 'eveai_app_'
|
||||
app.config['SECURITY_RESET_PASSWORD_FORM'] = ResetPasswordForm
|
||||
|
||||
try:
|
||||
os.makedirs(app.instance_path)
|
||||
|
||||
Reference in New Issue
Block a user