aboutsummaryrefslogtreecommitdiff
path: root/templates/layout.html
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2022-02-15 15:12:32 -0500
committerB Stack <bgstack15@gmail.com>2022-02-15 15:12:32 -0500
commit0556ebe21c3143be2a3e32c4f49e127044bdd47c (patch)
tree6c7074e9b02b3aac380e74569da2d041f24700cb /templates/layout.html
parentshore up docs (diff)
downloadstackbin-0556ebe21c3143be2a3e32c4f49e127044bdd47c.tar.gz
stackbin-0556ebe21c3143be2a3e32c4f49e127044bdd47c.tar.bz2
stackbin-0556ebe21c3143be2a3e32c4f49e127044bdd47c.zip
pw-protect /admin endpoint
Use a hardcoded password from the config file.
Diffstat (limited to 'templates/layout.html')
-rw-r--r--templates/layout.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/layout.html b/templates/layout.html
index 3c6d8ab..3620a3a 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -9,6 +9,8 @@
<div class=page>
<ul class=nav>
<li><a href="{{ url_for('new_paste') }}">New Paste</a>
+ {% if g.user and g.user == "admin" %}<li><a href="{{ url_for('admin') }}">admin</a></li>{% endif %}
+ {% if g.user %}<li><a href="{{ url_for('logout') }}">Sign out</a></li>{% endif %}
{#
{% if g.user %}
<li><a href="{{ url_for('my_pastes') }}">My Pastes</a>
bgstack15