aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-07-25 16:16:49 -0700
committerFuwn <[email protected]>2023-07-25 16:16:49 -0700
commit973327932d76f99031e8676e20f0b8b65beb0b0d (patch)
tree1e9fcac7fb557be0de70d4fb0abebcd0e40e2d14 /src
parentfeat(html): sort lists (diff)
downloadold.due.moe-973327932d76f99031e8676e20f0b8b65beb0b0d.tar.xz
old.due.moe-973327932d76f99031e8676e20f0b8b65beb0b0d.zip
fix(due): secure secret key
Diffstat (limited to 'src')
-rw-r--r--src/due/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/due/__init__.py b/src/due/__init__.py
index 343e4a9..eac39d4 100644
--- a/src/due/__init__.py
+++ b/src/due/__init__.py
@@ -3,6 +3,7 @@ from due.routes import auth, oauth, index
from flask_cors import CORS
from dotenv import load_dotenv
from due.cache import cache
+import os
load_dotenv()
@@ -13,6 +14,6 @@ CORS(app)
app.register_blueprint(auth.bp, url_prefix="/auth")
app.register_blueprint(oauth.bp, url_prefix="/oauth")
app.register_blueprint(index.bp)
-app.secret_key = "due.moe"
+app.secret_key = os.getenv("SECRET_KEY")
cache.init_app(app)