mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 03:51:08 +00:00
Fixes invalid url breaking change password flow
This commit is contained in:
parent
e126c13ff7
commit
aa3cdee731
2 changed files with 6 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block panel %}
|
||||
<form name="edit-profile" action="/change-password/" method="post" enctype="multipart/form-data">
|
||||
<form name="edit-profile" action="{% url 'prefs-password' %}" method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
<div class="block">
|
||||
<label class="label" for="id_password">{% trans "New password:" %}</label>
|
||||
|
|
|
@ -224,7 +224,11 @@ urlpatterns = [
|
|||
re_path(r"^hide-goal/?$", views.hide_goal, name="hide-goal"),
|
||||
# preferences
|
||||
re_path(r"^preferences/profile/?$", views.EditUser.as_view(), name="prefs-profile"),
|
||||
re_path(r"^preferences/password/?$", views.ChangePassword.as_view()),
|
||||
re_path(
|
||||
r"^preferences/password/?$",
|
||||
views.ChangePassword.as_view(),
|
||||
name="prefs-password",
|
||||
),
|
||||
re_path(r"^preferences/block/?$", views.Block.as_view()),
|
||||
re_path(r"^block/(?P<user_id>\d+)/?$", views.Block.as_view()),
|
||||
re_path(r"^unblock/(?P<user_id>\d+)/?$", views.unblock),
|
||||
|
|
Loading…
Reference in a new issue