Fix UiPassword logout and session list url encoding

This commit is contained in:
shortcutme 2020-05-03 03:57:17 +02:00
parent 07faa3d6d3
commit 439f8fc476
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 2 additions and 0 deletions

View File

@ -90,12 +90,14 @@ class UiRequestPlugin(object):
del(cls.sessions[session_id])
# Action: Display sessions
@helper.encodeResponse
def actionSessions(self):
self.sendHeader()
yield "<pre>"
yield json.dumps(self.sessions, indent=4)
# Action: Logout
@helper.encodeResponse
def actionLogout(self):
# Session id has to passed as get parameter or called without referer to avoid remote logout
session_id = self.getCookies().get("session_id")