增加app.secret_key,加密session

This commit is contained in:
Tiger Ren 2024-10-20 19:34:08 +08:00
parent dae5fc202c
commit f9b72c82e0
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@ from app import create_app
logger = logging.getLogger(__name__)
app = create_app()
app.secret_key = "16ba35d65e87935161077764c8d2d41aff6cbfee6660338642ae307c541e8711" # 用于加密Session数据
if __name__ == '__main__':
logger.info("Starting the application")