From 39246d5df07e957415a9f79386376a7b094f8fe2 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Tue, 28 Nov 2017 14:45:54 +1100 Subject: [PATCH] Reshuffle login flow to hopefully make things more robust --- eosweb/core/static/nunjucks/booth/cast.html | 1 + eosweb/core/templates/auth/login.html | 1 + .../core/templates/auth/login_complete.html | 25 +++++++++++++++---- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/eosweb/core/static/nunjucks/booth/cast.html b/eosweb/core/static/nunjucks/booth/cast.html index 49862e4..bc91f0b 100644 --- a/eosweb/core/static/nunjucks/booth/cast.html +++ b/eosweb/core/static/nunjucks/booth/cast.html @@ -76,6 +76,7 @@ $("#cast_button").show(); $("#booth_logged_in_as").text("You are currently logged in as " + username + "."); castBallot(); + return true; } function castBallot() { diff --git a/eosweb/core/templates/auth/login.html b/eosweb/core/templates/auth/login.html index a53667a..a6979a8 100644 --- a/eosweb/core/templates/auth/login.html +++ b/eosweb/core/templates/auth/login.html @@ -42,6 +42,7 @@ function callback_complete(name) { window.location = "/"; + return true; } {% endblock %} diff --git a/eosweb/core/templates/auth/login_complete.html b/eosweb/core/templates/auth/login_complete.html index 7da05e8..0733faa 100644 --- a/eosweb/core/templates/auth/login_complete.html +++ b/eosweb/core/templates/auth/login_complete.html @@ -23,18 +23,33 @@ {% block basecontent %}
-
+ +
{% endblock %}