equal
deleted
inserted
replaced
202 |
202 |
203 template_name = '_user_login.html' |
203 template_name = '_user_login.html' |
204 |
204 |
205 # Check if the request came from logout page, if so set |
205 # Check if the request came from logout page, if so set |
206 # authentication to redirect to home page |
206 # authentication to redirect to home page |
207 if reverse('auth_logout') == urlparse.urlsplit( |
207 referer_path = urlparse.urlsplit(request.META['HTTP_REFERER'])[2] |
208 request.META['HTTP_REFERER'])[2]: |
208 if referer_path == reverse('auth_logout'): |
209 response = { |
209 response = { |
210 'authentication': 'success', |
210 'authentication': 'success', |
211 'redirect': reverse('home_page'), |
211 'redirect': reverse('home_page'), |
|
212 } |
|
213 elif referer_path == reverse('registration_activation_complete'): |
|
214 response = { |
|
215 'authentication': 'success', |
|
216 'redirect': reverse('view_profile'), |
212 } |
217 } |
213 else: |
218 else: |
214 response = { |
219 response = { |
215 'authentication': 'success', |
220 'authentication': 'success', |
216 'markup': loader.render_to_string(template_name, |
221 'markup': loader.render_to_string(template_name, |