Skip to content

Commit

Permalink
fix: Use a fixed secret key for the session
Browse files Browse the repository at this point in the history
  • Loading branch information
WCY-dt committed Dec 17, 2024
1 parent 5b971ee commit ac84de5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion my-github-2024.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

app = Flask(__name__)

secret_key = os.urandom(24)
# Use a fixed secret key for the session
secret_key = "my-github-2024"
app.secret_key = secret_key

load_dotenv()
Expand Down

0 comments on commit ac84de5

Please sign in to comment.