Skip to content

Commit

Permalink
www.dashboard: avoid extra variable
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez committed Jan 7, 2025
1 parent 501e8ed commit 75921b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# Override allauth `account_change_password` URL.
# /accounts/password/change/ <=> account_change_password
# https://github.com/pennersr/django-allauth/issues/468
re_path(r"^accounts/password/change/$", dashboard_views.password_change),
re_path(r"^accounts/password/change/$", dashboard_views.ItouPasswordChangeView.as_view()),
# --------------------------------------------------------------------------------------
# Override allauth `account_reset_password` URL.
# Avoid user enumeration via password reset page.
Expand Down
3 changes: 0 additions & 3 deletions itou/www/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ class ItouPasswordChangeView(PasswordChangeView):
success_url = reverse_lazy("dashboard:index")


password_change = ItouPasswordChangeView.as_view()


def edit_user_email(request, template_name="dashboard/edit_user_email.html"):
if request.user.has_sso_provider:
return HttpResponseForbidden()
Expand Down

0 comments on commit 75921b9

Please sign in to comment.