diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-18 17:52:10 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-18 18:42:26 -0700 |
commit | a4ea1a0e13b1b8016bbfaa0f0fbf983f0abdd5a5 (patch) | |
tree | 6bec961533bb2d1c09dfb203413b2d75d01875ce /python/fatcat_web/templates/auth_token.html | |
parent | 9d1e2ef1c1682f49ce666a012fad70d50cb4f376 (diff) | |
download | fatcat-a4ea1a0e13b1b8016bbfaa0f0fbf983f0abdd5a5.tar.gz fatcat-a4ea1a0e13b1b8016bbfaa0f0fbf983f0abdd5a5.zip |
python webface impl token generation
Diffstat (limited to 'python/fatcat_web/templates/auth_token.html')
-rw-r--r-- | python/fatcat_web/templates/auth_token.html | 30 |
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 %} |