Fix wrong url

This commit is contained in:
Christian Cueni 2019-07-17 20:07:42 +02:00
parent a1234f6688
commit 4d177ac4d6
3 changed files with 4 additions and 17 deletions

View File

@ -10,14 +10,7 @@
<form method="post" class="mt-1">
{% csrf_token %}
<div>
{{ form.new_password1.label_tag }}
{{ form.new_password1 }}
</div>
<div>
{{ form.new_password2.label_tag }}
{{ form.new_password2 }}
</div>
{{ form.as_p }}
<button class="btn mt-1" type="submit" name="action">{% trans 'Passwort zurücksetzen' %}</button>
</form>
{% endblock %}

View File

@ -10,14 +10,8 @@
<form method="post" class="mt-1">
{% csrf_token %}
<div>
{{ form.new_password1.label_tag }}
{{ form.new_password1 }}
</div>
<div>
{{ form.new_password2.label_tag }}
{{ form.new_password2 }}
</div>
{{ form.as_p }}
<button class="btn mt-1" type="submit" name="action">{% trans 'Passwort speichern' %}</button>
</form>
{% endblock %}

View File

@ -20,7 +20,7 @@ urlpatterns = [
path('welcome/', SetPasswordView.as_view(), name='set_password'),
path('set-password/done/', SetPasswordDoneView.as_view(), name='set_password_done'),
path('set-password/<uidb64>/<token>/', SetPasswordConfirmView.as_view(), name='set_password_confirm'),
path('set-password/done/', SetPasswordCompleteView.as_view(), name='set_password_complete'),
path('set-password/complete/', SetPasswordCompleteView.as_view(), name='set_password_complete'),
# wagtail
url(r'^cms/', include(wagtailadmin_urls)),