fix failed logins for path-routed environemnts
This commit is contained in:
parent
cec4e326c8
commit
b5bbdae317
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user