Don't login the user with every request in desktop mode. Just do it once. Fixes #2922

This commit is contained in:
Harshal Dhumal 2017-11-30 12:02:41 +00:00 committed by Dave Page
parent 35a5cf22d5
commit f3256aef71

View File

@ -540,7 +540,9 @@ def create_app(app_name=None):
):
abort(401)
if not config.SERVER_MODE:
if not config.SERVER_MODE:
@app.before_first_request
def before_first_request():
user = user_datastore.get_user(config.DESKTOP_USER)
# Throw an error if we failed to find the desktop user, to give