0001-views-render-debug-login-template-at-the-last-moment.patch
mellon/views.py | ||
---|---|---|
289 | 289 |
self.log.debug('trying to authenticate with attributes %r', attributes) |
290 | 290 |
response = self.authenticate(request, login, attributes) |
291 | 291 |
response.delete_cookie(RETRY_LOGIN_COOKIE) |
292 |
if self.debug_login: |
|
293 |
return self.render_debug_template(request, login, attributes) |
|
292 | 294 |
return response |
293 | 295 | |
294 | 296 |
def authenticate(self, request, login, attributes): |
... | ... | |
311 | 313 |
return self.render(request, 'mellon/user_not_found.html', {'saml_attributes': attributes}) |
312 | 314 |
request.session['lasso_session_dump'] = login.session.dump() |
313 | 315 | |
314 |
if self.debug_login: |
|
315 |
return self.render_debug_template(request, login, attributes) |
|
316 |
else: |
|
317 |
return HttpResponseRedirect(next_url) |
|
316 |
return HttpResponseRedirect(next_url) |
|
318 | 317 | |
319 | 318 |
def render_debug_template(self, request, login, attributes): |
320 | 319 |
request.session['mellon_debug_login'] = False |
321 |
- |