Skip to content

Commit 687c62b

Browse files
committed
Set WTF_CSRF_TIME_LIMIT=None
1 parent 9d0081c commit 687c62b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def create_app() -> Quart:
4343
app.config["SQLALCHEMY_DATABASE_URI"] = f"postgresql+psycopg://{os.environ.get('DB_USERNAME')}:{parse.quote_plus(os.environ.get('DB_PASSWORD'))}@{app.config['DB_HOST']}/library"
4444
app.config["POSTGRESQL_DATABASE_URI"] = f"postgresql://{os.environ.get('DB_USERNAME')}:{parse.quote_plus(os.environ.get('DB_PASSWORD'))}@{app.config['DB_HOST']}/library"
4545
app.config["TEMPLATES_AUTO_RELOAD"] = True
46+
app.config["WTF_CSRF_TIME_LIMIT"] = None # Max age in seconds for CSRF tokens. If set to None, the CSRF token is valid for the life of the session.
4647
app.after_request(_add_secure_headers)
4748
app.register_blueprint(home_blueprint, url_prefix="/")
4849
app.register_blueprint(health_blueprint, url_prefix="/health")

0 commit comments

Comments
 (0)