use a random secret key (#3971)

This commit is contained in:
liang.he 2024-12-19 16:49:44 +08:00 committed by GitHub
parent 9916813a34
commit 8d51a3c7a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,7 @@ app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv(
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.secret_key = "hwhefsewljfejrlesjfl"
app.secret_key = os.urandom(12).hex()
db = SQLAlchemy(app)