mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
fix persistent sessions
This commit is contained in:
parent
a038ca8df8
commit
eea926fadf
@ -92,7 +92,7 @@ class json_rpc:
|
||||
web.header("Content-Type", "application/x-json")
|
||||
ck = cookies()
|
||||
id = 0
|
||||
if not(ck.has_key("session_id") and ck["session_id"] in utils.SESSIONS):
|
||||
if not(ck.has_key("session_id") and ck["session_id"] in utils.config.get("sessions")):
|
||||
return json_error("not authenticated", id)
|
||||
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user