From a4ea1a0e13b1b8016bbfaa0f0fbf983f0abdd5a5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 18 Sep 2019 17:52:10 -0700 Subject: python webface impl token generation --- python/fatcat_web/templates/auth_account.html | 15 +++++++++++++- python/fatcat_web/templates/auth_token.html | 30 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 python/fatcat_web/templates/auth_token.html (limited to 'python/fatcat_web/templates') diff --git a/python/fatcat_web/templates/auth_account.html b/python/fatcat_web/templates/auth_account.html index 4faeb48f..4a51241a 100644 --- a/python/fatcat_web/templates/auth_account.html +++ b/python/fatcat_web/templates/auth_account.html @@ -26,11 +26,24 @@ +
+

Create API Token

+
+ +
+ +
+ + +
+
+
+
+

In the future, you will be able to...

{% endblock %} 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 %} +

Create API Token

+ + +{% if current_user.is_authenticated %} + +

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. + +

Copy from box: +

+ +
+ +
+
+ +

As wrapped text (beware whitespace): +

+ {{ auth_token }} +
+ +{% else %} +
+
Something Went Wrong
+

Horribly wrong! You should log-out (if possible) and log back in. +

+{% endif %} + +{% endblock %} -- cgit v1.2.3