Skip to content

Commit

Permalink
fix(settings): set LOGIN_REDIRECT_URL to /
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Nov 29, 2024
1 parent 599b5ad commit 18eea29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apis_acdhch_default_settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,8 @@
# apis-core provides a login interface on /apis/accounts/login
# so we use that route as default login route
LOGIN_URL = "/apis/accounts/login"

# https://docs.djangoproject.com/en/stable/ref/settings/#login-redirect-url
# apis-core does not provide a view on `/accounts/profile` which is the
# default LOGIN_REDIRECT_URL, so we set it to `/`.
LOGIN_REDIRECT_URL = "/"

0 comments on commit 18eea29

Please sign in to comment.