retain the redirect url on login failure

This commit is contained in:
Jakob Ketterl 2021-03-24 16:53:01 +01:00
parent d50d08ad2c
commit a90f77e545

View File

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