ight we done i think

This commit is contained in:
Jack Eilles 2024-01-11 21:38:09 +00:00
parent e981135042
commit ba083cc0cb
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@ from config import Config
app = Flask(__name__) app = Flask(__name__)
app.config['SECRET_KEY'] = Config.secretKey app.config['SECRET_KEY'] = Config.secretKey
app.config['MAX_CONTENT_LENGTH'] = Config.maxFileSize * 1024 * 1024
csrf = CSRFProtect(app) csrf = CSRFProtect(app)
bcrypt = Bcrypt(app) bcrypt = Bcrypt(app)
loginManager = LoginManager(app) loginManager = LoginManager(app)

View file

@ -151,4 +151,4 @@ def resetIDPass(userid):
Config.users.update_one({"userid": userid}, {"$set": {"idpass": hashedPass}}) Config.users.update_one({"userid": userid}, {"$set": {"idpass": hashedPass}})
return idpass return idpass
except: except:
return False return False