Commit c9fb4c5972e074a48afc718ae637a5eff69c5a1b
1 parent
184f587b
Exists in
master
and in
39 other branches
Removed old logout view
Showing
3 changed files
with
1 additions
and
11 deletions
Show diff stats
colab/accounts/urls.py
... | ... | @@ -12,8 +12,6 @@ urlpatterns = patterns('', |
12 | 12 | url(r'^change-password/$', |
13 | 13 | ChangeXMPPPasswordView.as_view(), name='change_password'), |
14 | 14 | |
15 | - url(r'^logout/?$', 'colab.accounts.views.logoutColab', name='logout'), | |
16 | - | |
17 | 15 | url(r'^(?P<username>[\w@+.-]+)/?$', |
18 | 16 | UserProfileDetailView.as_view(), name='user_profile'), |
19 | 17 | ... | ... |
colab/accounts/views.py
... | ... | @@ -5,7 +5,6 @@ import datetime |
5 | 5 | |
6 | 6 | from collections import OrderedDict |
7 | 7 | |
8 | -from django.contrib.auth.views import logout | |
9 | 8 | from django.contrib import messages |
10 | 9 | from django.db import transaction |
11 | 10 | from django.db.models import Count |
... | ... | @@ -116,13 +115,6 @@ class UserProfileDetailView(UserProfileBaseMixin, DetailView): |
116 | 115 | return super(UserProfileDetailView, self).get_context_data(**context) |
117 | 116 | |
118 | 117 | |
119 | -def logoutColab(request): | |
120 | - response = logout(request, next_page='/') | |
121 | - response.delete_cookie('_redmine_session') | |
122 | - response.delete_cookie('_gitlab_session') | |
123 | - return response | |
124 | - | |
125 | - | |
126 | 118 | def signup(request): |
127 | 119 | # If the request method is GET just return the form |
128 | 120 | if request.method == 'GET': | ... | ... |
colab/settings.py
... | ... | @@ -260,7 +260,7 @@ BROWSERID_AUDIENCES = [SITE_URL, SITE_URL.replace('https', 'http')] |
260 | 260 | LOGIN_URL = '/' |
261 | 261 | LOGIN_REDIRECT_URL = '/' |
262 | 262 | LOGIN_REDIRECT_URL_FAILURE = '/' |
263 | -LOGOUT_REDIRECT_URL = '/user/logout' | |
263 | +LOGOUT_REDIRECT_URL = '/' | |
264 | 264 | BROWSERID_CREATE_USER = False |
265 | 265 | |
266 | 266 | REVPROXY_ADD_REMOTE_USER = True | ... | ... |