aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/auth_token.html
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web/templates/auth_token.html')
-rw-r--r--python/fatcat_web/templates/auth_token.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/python/fatcat_web/templates/auth_token.html b/python/fatcat_web/templates/auth_token.html
new file mode 100644
index 00000000..5ff94277
--- /dev/null
+++ b/python/fatcat_web/templates/auth_token.html
@@ -0,0 +1,30 @@
+{% extends "base.html" %}
+{% block body %}
+<h1>Create API Token</h1>
+
+
+{% if current_user.is_authenticated %}
+
+ <p>An API auth token has been created. This token gives full access to your editor account, so you should take care to keep it private.
+
+ <p>Copy from box:
+ <div class="ui input" style="width: 100%;">
+ <input value="{{ auth_token }}" style="width: 100%;"></input>
+ </div>
+
+ <br>
+ <br>
+
+ <p>As wrapped text (beware whitespace):
+ <div class="ui segment" style="overflow-wrap: break-word;">
+ <code>{{ auth_token }}</code>
+ </div>
+
+{% else %}
+ <div class="ui negative message">
+ <div class="header">Something Went Wrong</div>
+ <p>Horribly wrong! You should log-out (if possible) and log back in.
+ </div>
+{% endif %}
+
+{% endblock %}