aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Cholewiński <harry666t@gmail.com>2015-04-16 19:49:31 +0200
committerKamil Cholewiński <harry666t@gmail.com>2015-04-16 19:49:31 +0200
commit795c5678de2e3aedc3fb1155490b477fe13210e8 (patch)
tree4ef36ee72d1f12d69d9bee977a7053998efa1c76
parentdec04b8e2d0bd2c551eee1cb6bb74448004f239c (diff)
downloadmpw-795c5678de2e3aedc3fb1155490b477fe13210e8.zip
mpw-795c5678de2e3aedc3fb1155490b477fe13210e8.tar.gz
mpw-795c5678de2e3aedc3fb1155490b477fe13210e8.tar.bz2
Use node ID as the secret key (very insecure, but OK for LAN)
-rw-r--r--mpw.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpw.py b/mpw.py
index b62e1b4..854f8af 100644
--- a/mpw.py
+++ b/mpw.py
@@ -1,6 +1,7 @@
import flask
import mpd
import os
+import uuid
SYMBOLS = {
@@ -28,7 +29,7 @@ SYMBOLS = {
app = flask.Flask(__name__)
app.mpd = mpd.MPDClient()
-app.secret_key = "TBsBrO7ynAfc5C+Psr78gtNjVO71pALJNZ55fFIFaJR5YHjO"
+app.secret_key = hex(uuid.getnode()) # WARNING: **VERY INSECURE**
@app.before_request