Commit c9fb4c5972e074a48afc718ae637a5eff69c5a1b

Authored by Sergio Oliveira
1 parent 184f587b

Removed old logout view

colab/accounts/urls.py
@@ -12,8 +12,6 @@ urlpatterns = patterns('', @@ -12,8 +12,6 @@ urlpatterns = patterns('',
12 url(r'^change-password/$', 12 url(r'^change-password/$',
13 ChangeXMPPPasswordView.as_view(), name='change_password'), 13 ChangeXMPPPasswordView.as_view(), name='change_password'),
14 14
15 - url(r'^logout/?$', 'colab.accounts.views.logoutColab', name='logout'),  
16 -  
17 url(r'^(?P<username>[\w@+.-]+)/?$', 15 url(r'^(?P<username>[\w@+.-]+)/?$',
18 UserProfileDetailView.as_view(), name='user_profile'), 16 UserProfileDetailView.as_view(), name='user_profile'),
19 17
colab/accounts/views.py
@@ -5,7 +5,6 @@ import datetime @@ -5,7 +5,6 @@ import datetime
5 5
6 from collections import OrderedDict 6 from collections import OrderedDict
7 7
8 -from django.contrib.auth.views import logout  
9 from django.contrib import messages 8 from django.contrib import messages
10 from django.db import transaction 9 from django.db import transaction
11 from django.db.models import Count 10 from django.db.models import Count
@@ -116,13 +115,6 @@ class UserProfileDetailView(UserProfileBaseMixin, DetailView): @@ -116,13 +115,6 @@ class UserProfileDetailView(UserProfileBaseMixin, DetailView):
116 return super(UserProfileDetailView, self).get_context_data(**context) 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 def signup(request): 118 def signup(request):
127 # If the request method is GET just return the form 119 # If the request method is GET just return the form
128 if request.method == 'GET': 120 if request.method == 'GET':
colab/settings.py
@@ -260,7 +260,7 @@ BROWSERID_AUDIENCES = [SITE_URL, SITE_URL.replace(&#39;https&#39;, &#39;http&#39;)] @@ -260,7 +260,7 @@ BROWSERID_AUDIENCES = [SITE_URL, SITE_URL.replace(&#39;https&#39;, &#39;http&#39;)]
260 LOGIN_URL = '/' 260 LOGIN_URL = '/'
261 LOGIN_REDIRECT_URL = '/' 261 LOGIN_REDIRECT_URL = '/'
262 LOGIN_REDIRECT_URL_FAILURE = '/' 262 LOGIN_REDIRECT_URL_FAILURE = '/'
263 -LOGOUT_REDIRECT_URL = '/user/logout' 263 +LOGOUT_REDIRECT_URL = '/'
264 BROWSERID_CREATE_USER = False 264 BROWSERID_CREATE_USER = False
265 265
266 REVPROXY_ADD_REMOTE_USER = True 266 REVPROXY_ADD_REMOTE_USER = True