From 0e4379d40d72cfb6ccb53d94fece00c504c1ff0b Mon Sep 17 00:00:00 2001 From: Karl Date: Mon, 18 Aug 2025 15:41:36 +0100 Subject: [PATCH] fix config key? --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 2fce69d..c2ce731 100644 --- a/app.py +++ b/app.py @@ -558,8 +558,9 @@ def _update_npm_config(credentials=None): print("Unauthorized attempt to update NPM config.") return False credentials = session.get("auth_credentials") + # If credentials are provided, we skip the session check as the user has already been authenticated - npm = NginxProxyManager(app.config['NPM_HOST'], app.config['NPM_EMAIL'], app.config['NPM_PASSWORD']) + npm = NginxProxyManager(app_config.NPM_HOST, app_config.NPM_EMAIL, app_config.NPM_PASSWORD) npm.login() host = npm.get_proxy_host(9) if host: