diff --git a/freedoi/accounts/urls.py b/freedoi/accounts/urls.py index ce46f75..c664fc9 100644 --- a/freedoi/accounts/urls.py +++ b/freedoi/accounts/urls.py @@ -10,7 +10,7 @@ urlpatterns = [ SendLoginEmailView.as_view(), name="login", ), - path("logout/", auth_views.LogoutView.as_view(), name="logout"), + path("logout/", auth_views.LogoutView.as_view(next_page="/"), name="logout"), path( "email-sent/", TemplateView.as_view(template_name="accounts/email_sent.html"), diff --git a/freedoi/settings.py b/freedoi/settings.py index 595b4e7..3ae3224 100644 --- a/freedoi/settings.py +++ b/freedoi/settings.py @@ -109,6 +109,8 @@ else: AUTH_USER_MODEL = "accounts.CustomUser" +LOGIN_REDIRECT_URL = "/" + AUTH_PASSWORD_VALIDATORS = [ { "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",