From 5287dca4e5a063bd99a0156b63bdd09756611c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 26 Jun 2020 10:16:50 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Flask=20login=20changed=20from?= =?UTF-8?q?=20user=5Fid=20to=20=5Fuser=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to @bzed for the heads-up. --- src/octoprint/server/util/tornado.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/util/tornado.py b/src/octoprint/server/util/tornado.py index 9baf3c2d2..2929fa1b0 100644 --- a/src/octoprint/server/util/tornado.py +++ b/src/octoprint/server/util/tornado.py @@ -1284,7 +1284,7 @@ def access_validation_factory(app, validator, *args): wsgi_environ = WsgiInputContainer.environ(request) with app.request_context(wsgi_environ): session = app.session_interface.open_session(app, flask.request) - user_id = session.get("user_id") + user_id = session.get("_user_id") user = None # Yes, using protected methods is ugly. But these used to be publicly available in former versions