Skip to content

Commit

Permalink
fix logout buton
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Rosenberg authored and Jake Rosenberg committed Oct 6, 2023
1 parent 576932e commit 742bb22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions designsafe/settings/common_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
)

LOGIN_REDIRECT_URL = os.environ.get('LOGIN_REDIRECT_URL', '/account/')
LOGOUT_REDIRECT_URL = os.environ.get('LOGOUT_REDIRECT_URL', '/auth/logged-out/')

CACHES = {
'default': {
Expand Down
3 changes: 1 addition & 2 deletions designsafe/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@
url(r'^auth/', include(('designsafe.apps.auth.urls', 'designsafe.apps.auth'), namespace='designsafe_auth')),

url(r'^login/$', des_login_options, name='login'),
url(r'^logout/$', des_logout,
{'next_page': '/auth/logged-out/'}, name='logout'),
url(r'^logout/$', des_logout.as_view(), name='logout'),

# help
url(r'^help/', include(('designsafe.apps.djangoRT.urls', 'designsafe.apps.djangoRT'), namespace='djangoRT')),
Expand Down

0 comments on commit 742bb22

Please sign in to comment.