Fix: User login on production.
This commit is contained in:
6
app.py
6
app.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user