forked from GithubBackups/healthchecks
Fix after-login redirects for users landing in the "Add Pushover" page
This commit is contained in:
parent
fb45b67892
commit
b081631e90
@ -26,7 +26,8 @@ from hc.lib.badges import get_badge_url
|
|||||||
from hc.payments.models import Subscription
|
from hc.payments.models import Subscription
|
||||||
|
|
||||||
NEXT_WHITELIST = ("/checks/",
|
NEXT_WHITELIST = ("/checks/",
|
||||||
"/integrations/add_slack/")
|
"/integrations/add_slack/",
|
||||||
|
"/integrations/add_pushover/")
|
||||||
|
|
||||||
|
|
||||||
def _make_user(email):
|
def _make_user(email):
|
||||||
|
@ -24,25 +24,8 @@
|
|||||||
{% site_name %}:</p>
|
{% site_name %}:</p>
|
||||||
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<form class="form-inline" action="{% url 'hc-login' %}" method="post">
|
<a href="{% url 'hc-login' %}?next={% url 'hc-add-pushover' %}"
|
||||||
{% csrf_token %}
|
class="btn btn-primary btn-lg">Sign In</a>
|
||||||
<div class="form-group">
|
|
||||||
<div class="input-group input-group-lg">
|
|
||||||
<div class="input-group-addon">@</div>
|
|
||||||
<input
|
|
||||||
type="email"
|
|
||||||
class="form-control"
|
|
||||||
name="email"
|
|
||||||
autocomplete="email"
|
|
||||||
placeholder="Email">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button type="submit" class="btn btn-lg btn-primary pull-right">
|
|
||||||
Log In
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user