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