Switched off session protection

Many departments are reporting being logged out during usage of the app
This may be because they present differing IP addresses to Notify on different requests due to outbound proxies and so on
Swicthing session protection to None means and IP change won't log a user out.
This commit is contained in:
Martyn Inglis
2016-12-14 14:07:08 +00:00
parent 0a69f1797a
commit 994032a76f

View File

@@ -99,6 +99,7 @@ def create_app():
login_manager.init_app(application)
login_manager.login_view = 'main.sign_in'
login_manager.login_message_category = 'default'
login_manager.session_protection = None
from app.main import main as main_blueprint
application.register_blueprint(main_blueprint)