From b081631e90950d85edb408bb8fd0450b0a38d0ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Wed, 28 Nov 2018 21:45:54 +0200 Subject: [PATCH] Fix after-login redirects for users landing in the "Add Pushover" page --- hc/accounts/views.py | 3 ++- templates/integrations/add_pushover.html | 21 ++------------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/hc/accounts/views.py b/hc/accounts/views.py index 125e07d4..50a7142c 100644 --- a/hc/accounts/views.py +++ b/hc/accounts/views.py @@ -26,7 +26,8 @@ from hc.lib.badges import get_badge_url from hc.payments.models import Subscription NEXT_WHITELIST = ("/checks/", - "/integrations/add_slack/") + "/integrations/add_slack/", + "/integrations/add_pushover/") def _make_user(email): diff --git a/templates/integrations/add_pushover.html b/templates/integrations/add_pushover.html index dd0c1ad4..ddfe4df6 100644 --- a/templates/integrations/add_pushover.html +++ b/templates/integrations/add_pushover.html @@ -24,25 +24,8 @@ {% site_name %}:

-
- {% csrf_token %} -
-
-
@
- -
-
-
- -
-
+ Sign In
{% endif %}