Fix: User login on production.

This commit is contained in:
2024-11-15 15:55:12 +00:00
parent 569508b408
commit 21e7154672
9 changed files with 115 additions and 53 deletions

6
app.py
View File

@@ -96,10 +96,12 @@ def internal_server_error(error):
app.logger.error('Traceback: %s', traceback.format_exc())
return "Internal Server Error", 500
@app.before_request
def make_session_permanent():
session.permanent = True
"""
csrf = CSRFProtect()
"""
cors = CORS()
db = SQLAlchemy()
mail = Mail()