This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
nielsperetzke
/
healthchecks
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
32
Wiki
Activity
Browse Source
Fix after-login redirects for users landing in the "Add Pushover" page
pull/211/head
Pēteris Caune
6 years ago
parent
fb45b67892
commit
b081631e90
No known key found for this signature in database
GPG Key ID:
E28D7679E9A9EDE2
2 changed files
with
4 additions
and
20 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
hc/accounts/views.py
+2
-19
templates/integrations/add_pushover.html
+ 2
- 1
hc/accounts/views.py
View File
@ -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
)
:
+ 2
- 19
templates/integrations/add_pushover.html
View File
@ -24,25 +24,8 @@
{% site_name %}:
<
/
p
>
<
div
class
=
"text-center"
>
<
form
class
=
"form-inline"
action
=
"{% url 'hc-login' %}"
method
=
"post"
>
{% csrf_token %}
<
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
>
<
a
href
=
"{% url 'hc-login' %}?next={% url 'hc-add-pushover' %}"
class="btn btn-primary btn-lg">Sign In
<
/
a
>
<
/
div
>
{% endif %}
<
/
div
>
Write
Preview
Loading…
Cancel
Save