mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Don't login the user with every request in desktop mode. Just do it once. Fixes #2922
This commit is contained in:
parent
35a5cf22d5
commit
f3256aef71
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user