Просмотр исходного кода

[core] Add a logout url with hue prefix

For consistency with API
Romain Rigaux 4 лет назад
Родитель
Сommit
ae5b51aa65
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      desktop/core/src/desktop/urls.py

+ 1 - 0
desktop/core/src/desktop/urls.py

@@ -66,6 +66,7 @@ handler500 = 'desktop.views.serve_500_error'
 # Some django-wide URLs
 dynamic_patterns = [
   re_path(r'^hue/accounts/login', desktop_auth_views.dt_login, name='desktop_auth_views_dt_login'),
+  re_path(r'^hue/accounts/logout/?$', desktop_auth_views.dt_logout, {'next_page': '/'}),
   re_path(r'^accounts/login/?$', desktop_auth_views.dt_login), # Deprecated
   re_path(r'^accounts/logout/?$', desktop_auth_views.dt_logout, {'next_page': '/'}),
   re_path(r'^profile$', desktop_auth_views.profile),