Skip to content

Commit

Permalink
Redirect .well-known/change-password to the change password page
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhiek187 committed Oct 15, 2023
1 parent d81fff7 commit 8900c98
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions stockhelper/stockhelper/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@

urlpatterns = [
# Redirect the root path to the home page of stockapp
path("", RedirectView.as_view(
url=reverse_lazy("stockapp:index"), permanent=True)),
path("", RedirectView.as_view(url=reverse_lazy("stockapp:index"), permanent=True)),
# Redirect .well-known/change-password to the change password screen
path(
".well-known/change-password",
RedirectView.as_view(url=reverse_lazy("password_change"), permanent=True),
),
path("admin/", admin.site.urls),
path("accounts/", include("django.contrib.auth.urls")),
path("accounts/create", views.create_account, name="create"),
path("accounts/delete", views.delete_account, name="delete"),
path("stockapp/", include("stockapp.urls"))
path("stockapp/", include("stockapp.urls")),
]

0 comments on commit 8900c98

Please sign in to comment.