mirror of
https://github.com/jackeilles/xygt.git
synced 2024-11-08 07:52:38 +01:00
ight we done i think
This commit is contained in:
parent
e981135042
commit
ba083cc0cb
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
|
@ -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
|
Loading…
Reference in a new issue