From 323e34107ab58c746748799bacef00aa65c6b317 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Apr 2019 10:59:28 -0700 Subject: better CSRF handling; restyle account page --- python/fatcat_web/templates/405.html | 12 ++++++++++++ python/fatcat_web/templates/auth_account.html | 16 +++++++++++----- python/fatcat_web/templates/csrf_error.html | 10 ++++++++++ 3 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 python/fatcat_web/templates/405.html create mode 100644 python/fatcat_web/templates/csrf_error.html (limited to 'python/fatcat_web/templates') diff --git a/python/fatcat_web/templates/405.html b/python/fatcat_web/templates/405.html new file mode 100644 index 00000000..97d21d73 --- /dev/null +++ b/python/fatcat_web/templates/405.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} +{% block body %} + +
+
405
+
Method Not Allowed
+ +

Either we have a bug, or you tried something weird (like making up a URL). + +

+ +{% endblock %} diff --git a/python/fatcat_web/templates/auth_account.html b/python/fatcat_web/templates/auth_account.html index 57155722..0311c538 100644 --- a/python/fatcat_web/templates/auth_account.html +++ b/python/fatcat_web/templates/auth_account.html @@ -1,23 +1,29 @@ {% extends "base.html" %} {% block body %} -

Your Account

+

+ + Account Settings +

Username: {{ current_user.username }}

Editor Id: {{ current_user.editor_id }} -

-

Change username: +
+

+

Change Username

+
-
+
- +
+

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

  • Create a bot user diff --git a/python/fatcat_web/templates/csrf_error.html b/python/fatcat_web/templates/csrf_error.html new file mode 100644 index 00000000..357f9047 --- /dev/null +++ b/python/fatcat_web/templates/csrf_error.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% block body %} + +
    +
    400
    +
    Cross-Site Scripting Error
    +{{ reason }} +
    + +{% endblock %} -- cgit v1.2.3