Fix UiPassword logout and session list url encoding
This commit is contained in:
parent
07faa3d6d3
commit
439f8fc476
1 changed files with 2 additions and 0 deletions
|
@ -90,12 +90,14 @@ class UiRequestPlugin(object):
|
||||||
del(cls.sessions[session_id])
|
del(cls.sessions[session_id])
|
||||||
|
|
||||||
# Action: Display sessions
|
# Action: Display sessions
|
||||||
|
@helper.encodeResponse
|
||||||
def actionSessions(self):
|
def actionSessions(self):
|
||||||
self.sendHeader()
|
self.sendHeader()
|
||||||
yield "<pre>"
|
yield "<pre>"
|
||||||
yield json.dumps(self.sessions, indent=4)
|
yield json.dumps(self.sessions, indent=4)
|
||||||
|
|
||||||
# Action: Logout
|
# Action: Logout
|
||||||
|
@helper.encodeResponse
|
||||||
def actionLogout(self):
|
def actionLogout(self):
|
||||||
# Session id has to passed as get parameter or called without referer to avoid remote logout
|
# Session id has to passed as get parameter or called without referer to avoid remote logout
|
||||||
session_id = self.getCookies().get("session_id")
|
session_id = self.getCookies().get("session_id")
|
||||||
|
|
Loading…
Reference in a new issue