From ba083cc0cb9afe348733dafc6870b0eb79aa072d Mon Sep 17 00:00:00 2001 From: Jack Eilles Date: Thu, 11 Jan 2024 21:38:09 +0000 Subject: [PATCH] ight we done i think --- app/__init__.py | 1 + app/worker.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index ed74907..c8aaa47 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -6,6 +6,7 @@ from config import Config app = Flask(__name__) app.config['SECRET_KEY'] = Config.secretKey +app.config['MAX_CONTENT_LENGTH'] = Config.maxFileSize * 1024 * 1024 csrf = CSRFProtect(app) bcrypt = Bcrypt(app) loginManager = LoginManager(app) diff --git a/app/worker.py b/app/worker.py index 40a2a41..47621fa 100644 --- a/app/worker.py +++ b/app/worker.py @@ -151,4 +151,4 @@ def resetIDPass(userid): Config.users.update_one({"userid": userid}, {"$set": {"idpass": hashedPass}}) return idpass except: - return False \ No newline at end of file + return False \ No newline at end of file