Skip to content
Snippets Groups Projects
Commit 01799e68 authored by Tom Teichler's avatar Tom Teichler :beers: Committed by root
Browse files

Fix disabling of password change

parent 73247866
No related branches found
No related tags found
1 merge request!413Resolve "User registration"
Pipeline #11501 failed
{% extends "core/base.html" %}
{% load i18n material_form %}
{% block browser_title %}{% trans "Changing of password disabled" %}{% endblock %}
{% block page_title %}{% trans "Changing of password disabled" %}{% endblock %}
{% block content %}
<div class="container">
<div class="card red">
<div class="card-content white-text">
<div class="material-icons small left">error_outline</div>
<span class="card-title">{% blocktrans %}Changing of password disabled.{% endblocktrans %}</span>
<p>
{% blocktrans %}
Users are not allowed to edit their own passwords. If you think
this is an error please contact one of your site administrators.
{% endblocktrans %}
</p>
{% include "core/partials/admins_list.html" %}
</div>
</div>
</div>
{% endblock %}
......@@ -22,7 +22,7 @@ urlpatterns = [
path(settings.MEDIA_URL.removeprefix("/"), include("titofisto.urls")),
path("about/", views.about, name="about_aleksis"),
path("accounts/logout/", auth_views.LogoutView.as_view(), name="logout"),
path("accounts/password/change", views.CustomPasswordChangeView.as_view(), name="account_change_password"),
path("accounts/password/change/", views.CustomPasswordChangeView.as_view(), name="account_change_password"),
path("accounts/", include("allauth.urls")),
path("admin/", admin.site.urls),
path("admin/uwsgi/", include("django_uwsgi.urls")),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment