fix failed logins for path-routed environemnts

This commit is contained in:
Jakob Ketterl 2022-06-09 18:43:54 +02:00
parent cec4e326c8
commit b5bbdae317

View File

@ -72,8 +72,8 @@ class SessionController(WebpageController):
self.set_response_cookies(cookie) self.set_response_cookies(cookie)
self.send_redirect(target) self.send_redirect(target)
return return
target = "?{}".format(urlencode({"ref": self.request.query["ref"][0]})) if "ref" in self.request.query else "" target = "{}login?{}".format(self.get_document_root(), urlencode({"ref": self.request.query["ref"][0]}))
self.send_redirect(self.request.path + target) self.send_redirect(target)
def logoutAction(self): def logoutAction(self):
self.send_redirect("logout happening here") self.send_redirect("logout happening here")