aboutsummaryrefslogtreecommitdiff
path: root/pastebin.py
diff options
context:
space:
mode:
Diffstat (limited to 'pastebin.py')
-rw-r--r--pastebin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pastebin.py b/pastebin.py
index cd67265..37fda53 100644
--- a/pastebin.py
+++ b/pastebin.py
@@ -89,7 +89,7 @@ def new_paste():
paste = Paste(g.user, request.form['code'], title, parent=parent, is_private=is_private)
db.session.add(paste)
db.session.commit()
- sign = Signer(app.secret_key, salt='jackson').sign(str(paste.id)) \
+ sign = Signer(app.secret_key, salt=app.config['SALT']).sign(str(paste.id)) \
if is_private else None
return redirect(url_for('show_paste', paste_id=paste.id, s=sign))
return render_template('new_paste.html', parent=parent)
@@ -105,7 +105,7 @@ def show_paste(paste_id):
try:
sign = request.args.get('s', '')
assert str(paste.id) == \
- Signer(app.secret_key, salt='jackson').unsign(sign).decode("utf-8")
+ Signer(app.secret_key, salt=app.config['SALT']).unsign(sign).decode("utf-8")
except:
abort(403)
parent = None
bgstack15