Browse Source

Simplify inline scripts for easier CSP

pull/211/head
Pēteris Caune 6 years ago
parent
commit
8ad3b0d537
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
2 changed files with 4 additions and 8 deletions
  1. +3
    -5
      templates/accounts/check_token_submit.html
  2. +1
    -3
      templates/accounts/unsubscribe_submit.html

+ 3
- 5
templates/accounts/check_token_submit.html View File

@ -8,10 +8,8 @@
</head>
<body>
<form id="form-auto" method="post">{% csrf_token %}</form>
<script>
document.getElementById("form-auto").submit();
</script>
<form id="form" method="post">{% csrf_token %}</form>
<script>document.getElementById("form").submit();</script>
<style>
body {
@ -45,7 +43,7 @@
<p>You are about to log into {% site_name %}.</p>
<p>Please press the button below to continue:</p>
<br />
<form id="form" method="post">
<form method="post">
{% csrf_token %}
<input
id="submit-btn"


+ 1
- 3
templates/accounts/unsubscribe_submit.html View File

@ -14,7 +14,5 @@
value="Unsubscribe">
</form>
<script>
document.getElementById("form").submit();
</script>
<script>document.getElementById("form").submit();</script>
{% endblock %}

Loading…
Cancel
Save