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")
|
web.header("Content-Type", "application/x-json")
|
||||||
ck = cookies()
|
ck = cookies()
|
||||||
id = 0
|
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)
|
return json_error("not authenticated", id)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user