From e649f22ae87ed53978786b33a4eed8870b04bc62 Mon Sep 17 00:00:00 2001
From: Fredrik Jonsson <frjo@xdeb.org>
Date: Thu, 23 May 2019 16:10:20 +0200
Subject: [PATCH] Do not show google-oauth2 button on 2fs token page.

---
 opentech/apply/users/templates/users/login.html | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/opentech/apply/users/templates/users/login.html b/opentech/apply/users/templates/users/login.html
index e21c21092..201f54e6d 100644
--- a/opentech/apply/users/templates/users/login.html
+++ b/opentech/apply/users/templates/users/login.html
@@ -58,12 +58,16 @@
             </p>
         {% endif %}
 
-        {% include "two_factor/_wizard_actions.html" %}
+        <div class="wrapper wrapper--inner-space-large">
+            {% include "two_factor/_wizard_actions.html" %}
+        </div>
       {% endif %}
     </form>
 
-    <div class="wrapper wrapper--inner-space-large">
-      <a class="link link--button link--button-long-text" href="{% url "social:begin" "google-oauth2" %}{% if next %}?next={{ next }}{% endif %}">Log in with your OTF email</a>
-    </div>
+    {% if wizard.steps.current == 'auth' %}
+        <div class="wrapper wrapper--inner-space-large">
+          <a class="link link--button link--button-long-text" href="{% url "social:begin" "google-oauth2" %}{% if next %}?next={{ next }}{% endif %}">Log in with your OTF email</a>
+        </div>
+    {% endif %}
   </div>
 {% endblock %}
-- 
GitLab