1.1 --- a/WebStack/Resources/Login.py Wed Nov 16 18:26:51 2005 +0000
1.2 +++ b/WebStack/Resources/Login.py Wed Nov 16 18:27:07 2005 +0000
1.3 @@ -88,7 +88,7 @@
1.4 if fields_body.has_key("login"):
1.5 if self.authenticator.authenticate(trans):
1.6 self._redirect(trans, app, path, qs)
1.7 - return
1.8 + # The above method does not return.
1.9
1.10 # Otherwise, show the login form.
1.11
1.12 @@ -101,13 +101,13 @@
1.13 details.
1.14 """
1.15
1.16 - if self.use_redirect:
1.17 - trans.set_header_value("Location", app + trans.encode_path(path, self.urlencoding) + qs)
1.18 - trans.set_response_code(302) # was 307
1.19 -
1.20 # Show the success page anyway.
1.21
1.22 self._show_success(trans, app, path, qs)
1.23 + if self.use_redirect:
1.24 + trans.redirect(app + trans.encode_path(path, self.urlencoding) + qs)
1.25 + else:
1.26 + raise WebStack.Generic.EndOfResponse
1.27
1.28 def _show_login(self, trans, app, path, qs):
1.29