Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions dnote/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
def index():
"""Return the index.html for the main application."""
error = request.args.get('error', None)
note = Note()
return render_template('index.html', random=note.url, error=error)
return render_template('index.html', error=error)

@DNOTE.route('/security/', methods=['GET'])
def security():
Expand All @@ -32,8 +31,7 @@ def about():
@DNOTE.route('/post', methods=['POST'])
def show_post():
"""Return the random URL after posting the plaintext."""
new_url = request.form["new_url"]
note = Note(new_url)
note = Note()
note.plaintext = request.form['paste']

passphrase = request.form.get('pass', False)
Expand Down
1 change: 0 additions & 1 deletion dnote/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ <h1>Self destructing encrypted notes</h1>
{% endif %}
</p>
{% endif %}
<input name="new_url" type="hidden" value="{{ random }}">
<p>Type or paste your text below:</p>
<textarea style="width:100%; height:250px" id="paste" name="paste"></textarea>
<br/>
Expand Down